summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libunwind/libunwind-1.1/0001-disable-tests.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-03-22 17:06:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-25 10:29:16 +0000
commit4fe64d79a08cc08f3322546136e35a080aa5458b (patch)
tree8480bd2ba8ba19b1d3b3d870d6f2f41f98515aec /meta/recipes-support/libunwind/libunwind-1.1/0001-disable-tests.patch
parent4aa08b897628ef43adc9c3aa86bdf32499c328c1 (diff)
downloadpoky-4fe64d79a08cc08f3322546136e35a080aa5458b.tar.gz
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>
Diffstat (limited to 'meta/recipes-support/libunwind/libunwind-1.1/0001-disable-tests.patch')
-rw-r--r--meta/recipes-support/libunwind/libunwind-1.1/0001-disable-tests.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind-1.1/0001-disable-tests.patch b/meta/recipes-support/libunwind/libunwind-1.1/0001-disable-tests.patch
new file mode 100644
index 0000000000..7309ffd865
--- /dev/null
+++ b/meta/recipes-support/libunwind/libunwind-1.1/0001-disable-tests.patch
@@ -0,0 +1,31 @@
1From b07435a90bd636ee718e2238fb46c74a6dd5e069 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 22 Mar 2016 16:41:13 +0000
4Subject: [PATCH] disable tests
5
6Tests use getcontext() API which is
7not there on musl
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11Upstream-Status: Inappropriate [MUSL-only]
12
13 Makefile.am | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/Makefile.am b/Makefile.am
17index e24fe1e..15380e4 100644
18--- a/Makefile.am
19+++ b/Makefile.am
20@@ -39,7 +39,7 @@ endif
21
22 nodist_include_HEADERS = include/libunwind-common.h
23
24-SUBDIRS = src tests doc
25+SUBDIRS = src doc
26
27 noinst_HEADERS = include/dwarf.h include/dwarf_i.h include/dwarf-eh.h \
28 include/compiler.h include/libunwind_i.h include/mempool.h \
29--
301.8.3.1
31