[oe-commits] [openembedded-core] 20/22: libunwind: Fix build with musl+security flags

git at git.openembedded.org git at git.openembedded.org
Wed Aug 15 08:46:20 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 43894faa45884dcc3b6111ed67e1a96fbec019a8
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Tue Aug 14 12:21:34 2018 -0700

    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 at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-support/libunwind/libunwind_1.2.1.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-support/libunwind/libunwind_1.2.1.bb b/meta/recipes-support/libunwind/libunwind_1.2.1.bb
index 37a7624..e7fb2b2 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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list