]> code.ossystems Code Review - openembedded-core.git/commit
libunwind: Fix build with fstack-protector on musl
authorKhem Raj <raj.khem@gmail.com>
Tue, 22 Mar 2016 17:06:07 +0000 (17:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Mar 2016 21:44:26 +0000 (21:44 +0000)
commitc8ac9d483f6e1cfca82dad8cf3e0745935e96214
treec8f2c204006036478b64115cbb40e33e9fc1956c
parent04cbc4834076fef6b46af4c5c66046862de7634d
libunwind: Fix build with fstack-protector on musl

libunwind makery inserts -nostdlib during linking
which fails the build on musl when security flags are enabled
since it remove ssp from linking, so add them explicitly
to SECURITY_LDFLAGS

disable tests for musl targets, tests use obsolete
posix APIs e.g. getcontext

patchout x86_local_resume() on x86, gets a working
linunwind on x86, it seems that it wont work even
in glibc case but lets leave it as it is for glibc
and apply the patch only for musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/libunwind/libunwind-1.1/0001-disable-tests.patch [new file with mode: 0644]
meta/recipes-support/libunwind/libunwind-1.1/0001-x86-Stub-out-x86_local_resume.patch [new file with mode: 0644]
meta/recipes-support/libunwind/libunwind.inc
meta/recipes-support/libunwind/libunwind_1.1.bb