summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-04-21 23:59:13 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-28 07:55:59 +0100
commit3c6746748a845b5156f81fe7a01caa58ee29e938 (patch)
tree016966d1b1cb2c7d22fe1071cbea86b871ab51db
parent684eaa7f87d321c7965d1393cc5da2190c4acac5 (diff)
downloadopenembedded-core-3c6746748a845b5156f81fe7a01caa58ee29e938.tar.gz
openembedded-core-3c6746748a845b5156f81fe7a01caa58ee29e938.tar.bz2
openembedded-core-3c6746748a845b5156f81fe7a01caa58ee29e938.zip
libunwind: don't use gold for mips
The gold doesn't work for mips or mips64: configure:3867: checking whether the C compiler works configure:3889: mips-poky-linux-gcc -meb -mabi=32 -mhard-float -march=mips32r2 --sysroot=/buildarea/lyang1/test_uni/tmp/sysroots/qemumips -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--as-needed -fuse-ld=gold conftest.c >&5 collect2: fatal error: cannot find 'ld' Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/libunwind/libunwind.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-support/libunwind/libunwind.inc b/meta/recipes-support/libunwind/libunwind.inc
index c4a7b5e203..406bbe4633 100644
--- a/meta/recipes-support/libunwind/libunwind.inc
+++ b/meta/recipes-support/libunwind/libunwind.inc
@@ -23,7 +23,14 @@ LIBATOMICS_armv5 = "-latomic_ops"
LIBATOMICS_armv4 = "-latomic_ops"
LIBATOMICS ?= ""
-LDFLAGS_append = " -fuse-ld=gold"
+LDFLAGS_append_x86 = " -fuse-ld=gold"
+LDFLAGS_append_x86-64 = " -fuse-ld=gold"
+
+LDFLAGS_append_arm = " -fuse-ld=gold"
+LDFLAGS_append_aarch64 = " -fuse-ld=gold"
+
+LDFLAGS_append_powerpc = " -fuse-ld=gold"
+LDFLAGS_append_powerpc64 = " -fuse-ld=gold"
DEPENDS += "${DEPLIBATOMICS}"
DEPLIBATOMICS_armv5 = "libatomics-ops"