]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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>
Fri, 25 Mar 2016 10:29:16 +0000 (10:29 +0000)
commit4fe64d79a08cc08f3322546136e35a080aa5458b
tree8480bd2ba8ba19b1d3b3d870d6f2f41f98515aec
parent4aa08b897628ef43adc9c3aa86bdf32499c328c1
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

(From OE-Core rev: c8ac9d483f6e1cfca82dad8cf3e0745935e96214)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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