diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-07 15:53:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-08 10:53:22 +0100 |
commit | 6cd8c8d7466cdf29e7a94ebd4978b129da4455fa (patch) | |
tree | 342f9687388d7b4077cae8d4bb6c688c61847e86 /meta/recipes-support/libunwind | |
parent | 26648dcd1c6711779b1908b32fb0581a1bb92425 (diff) | |
download | poky-6cd8c8d7466cdf29e7a94ebd4978b129da4455fa.tar.gz |
libunwind: Build with gold to avoid build failures
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.
(From OE-Core rev: 34d517a5626ce2465f776367349bd9e66bf8ed1f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libunwind')
-rw-r--r-- | meta/recipes-support/libunwind/libunwind.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind.inc b/meta/recipes-support/libunwind/libunwind.inc index 2a65631b2c..74afba182f 100644 --- a/meta/recipes-support/libunwind/libunwind.inc +++ b/meta/recipes-support/libunwind/libunwind.inc | |||
@@ -23,6 +23,9 @@ LIBATOMICS_armv5 = "-latomic_ops" | |||
23 | LIBATOMICS_armv4 = "-latomic_ops" | 23 | LIBATOMICS_armv4 = "-latomic_ops" |
24 | LIBATOMICS ?= "" | 24 | LIBATOMICS ?= "" |
25 | 25 | ||
26 | LDFLAGS_append_x86 = " -fuse-ld=gold" | ||
27 | LDFLAGS_append_x86-64 = " -fuse-ld=gold" | ||
28 | |||
26 | DEPENDS += "${DEPLIBATOMICS}" | 29 | DEPENDS += "${DEPLIBATOMICS}" |
27 | DEPLIBATOMICS_armv5 = "libatomics-ops" | 30 | DEPLIBATOMICS_armv5 = "libatomics-ops" |
28 | DEPLIBATOMICS_armv4 = "libatomics-ops" | 31 | DEPLIBATOMICS_armv4 = "libatomics-ops" |