]> code.ossystems Code Review - openembedded-core.git/commitdiff
libunwind: don't mess around with ARM atomic detection
authorRoss Burton <ross.burton@intel.com>
Wed, 7 Jun 2017 14:10:49 +0000 (15:10 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 9 Jun 2017 16:12:05 +0000 (17:12 +0100)
This recipe explictly sets -DAO_USE_PTHREAD_DEFS on ARM, but with libunwind 1.2
this causes the linker to fail:

  hidden symbol `__sync_synchronize' in libgcc.a(linux-atomic.o) is referenced by DSO

Removing these defines lets configure do the right thing and build libunwind.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/libunwind/libunwind.inc

index 4f64ad7f8753f3bdc6dc1b47457e2742617e6377..fc33786b9e685d1f588717b4de5b6403f7972b04 100644 (file)
@@ -13,11 +13,6 @@ PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz"
 EXTRA_OECONF_arm = "--enable-debug-frame"
 EXTRA_OECONF_aarch64 = "--enable-debug-frame"
 
-CFLAGS += "${ATOMICOPS}"
-ATOMICOPS_armv5 = "-DAO_USE_PTHREAD_DEFS=1"
-ATOMICOPS_armv4 = "-DAO_USE_PTHREAD_DEFS=1"
-ATOMICOPS ?= ""
-
 SECURITY_LDFLAGS_append_libc-musl = " -lssp_nonshared -lssp"
 
 BBCLASSEXTEND = "native"