]> code.ossystems Code Review - openembedded-core.git/commitdiff
libunwind: Build with gold to avoid build failures
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Apr 2015 14:53:04 +0000 (15:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Apr 2015 16:32:00 +0000 (17:32 +0100)
The library fails to build with binutils 2.25 and standard ld. This
issue is fixed in gcc 5 with no plans to backport to gcc 4. Easiest
workaround for now is to use gold as the linker for the library
since gold does not have the issue. The bug is x86 only.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libunwind/libunwind.inc

index 2a65631b2c89f8992680d112137698cb4c0c1f89..74afba182f1fdffc67dcdaf1e0d28b000f20ee81 100644 (file)
@@ -23,6 +23,9 @@ LIBATOMICS_armv5 = "-latomic_ops"
 LIBATOMICS_armv4 = "-latomic_ops"
 LIBATOMICS ?= ""
 
+LDFLAGS_append_x86 = " -fuse-ld=gold"
+LDFLAGS_append_x86-64 = " -fuse-ld=gold"
+
 DEPENDS += "${DEPLIBATOMICS}"
 DEPLIBATOMICS_armv5 = "libatomics-ops"
 DEPLIBATOMICS_armv4 = "libatomics-ops"