summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libunwind
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-08-14 12:21:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-15 09:33:53 +0100
commit43894faa45884dcc3b6111ed67e1a96fbec019a8 (patch)
tree024ac972878f5f91712b2c86bca4a1894fd9b914 /meta/recipes-support/libunwind
parentf12b64e9332e3988953f87d8cea39ca309be5046 (diff)
downloadopenembedded-core-43894faa45884dcc3b6111ed67e1a96fbec019a8.tar.gz
openembedded-core-43894faa45884dcc3b6111ed67e1a96fbec019a8.tar.bz2
openembedded-core-43894faa45884dcc3b6111ed67e1a96fbec019a8.zip
libunwind: Fix build with musl+security flags
Fixes src/os-linux.c:63: undefined reference to `__stack_chk_fail_local' Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libunwind')
-rw-r--r--meta/recipes-support/libunwind/libunwind_1.2.1.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind_1.2.1.bb b/meta/recipes-support/libunwind/libunwind_1.2.1.bb
index 37a762486f..e7fb2b2190 100644
--- a/meta/recipes-support/libunwind/libunwind_1.2.1.bb
+++ b/meta/recipes-support/libunwind/libunwind_1.2.1.bb
@@ -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"