Skip to contentSkip to conversation

libunwind: don't use gold for mips

PATCH New Robert Yang 1 participant 2 messages Apr 22, 2015

lore
Share & tools
lore
#0 lore raw

v2 cover libunwind: don't use gold for mips

* V2
Set the arch one by one.

// Robert

The following changes since commit 166f2587468ae71988c610858aad3f7ef67eccba:

bison: don't depend on help2man (2015-04-21 11:29:30 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/libunwind
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/libunwind

Robert Yang (1):
libunwind: don't use gold for mips

 meta/recipes-support/libunwind/libunwind.inc |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v2 1/1 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'

---
 meta/recipes-support/libunwind/libunwind.inc |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
meta/recipes-support/libunwind/libunwind.inc +8 -1
index c4a7b5e..406bbe4 100644
@@ -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"
Signature · 1 line
1.7.9.5