]> code.ossystems Code Review - openembedded-core.git/commitdiff
libunwind: Fix build on ppc
authorKhem Raj <raj.khem@gmail.com>
Mon, 15 Feb 2016 09:47:33 +0000 (09:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Feb 2016 09:03:28 +0000 (09:03 +0000)
gcc driver is fixed to pass correct options to linker to do secure plt
linking when enabled. however this option --secure-plt is not supported
by gold linker which is now passed by default from gcc driver. Hence
the build fails when using gold. Therefore when we use gold then we do
not use secure plt

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libunwind/libunwind.inc

index 068858b2d89c4475434835c236ea19fa7b3b04ff..f83614bf5c4f685aa0eb1a284d0f44acb6a502e8 100644 (file)
@@ -26,7 +26,7 @@ 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"
+LDFLAGS_append_powerpc = " -fuse-ld=gold -mbss-plt"
+LDFLAGS_append_powerpc64 = " -fuse-ld=gold -mbss-plt"
 
 BBCLASSEXTEND = "native"