Skip to contentSkip to conversation

libunwind: Fix build with musl+security flags

PATCH New Khem Raj 1 participant 1 message Aug 14, 2018

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 libunwind: Fix build with musl+security flags

Fixes
src/os-linux.c:63: undefined reference to `__stack_chk_fail_local'

---
 meta/recipes-support/libunwind/libunwind_1.2.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-support/libunwind/libunwind_1.2.1.bb +2 -0
index 37a762486f..e7fb2b2190 100644
@@ -21,3 +21,5 @@ ARM_INSTRUCTION_SET_armv4 = "arm"
 ARM_INSTRUCTION_SET_armv5 = "arm"
 
 LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
+
+SECURITY_LDFLAGS_append_libc-musl = " -lssp_nonshared"
Signature · 1 line
2.18.0