Skip to contentSkip to conversation

libunwind: Fix build on ppc

PATCH New Khem Raj 1 participant 1 message Feb 15, 2016

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 6/6 libunwind: Fix build on ppc

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

---
 meta/recipes-support/libunwind/libunwind.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-support/libunwind/libunwind.inc +2 -2
index 068858b..f83614b 100644
@@ -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"
Signature · 1 line
2.7.1