summaryrefslogtreecommitdiffstats
path: root/package/libunwind
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2017-04-17 19:37:22 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-04 23:23:17 +0200
commit60aee0cc5afb85976ca3b346f82b2caadc3a1c21 (patch)
tree145157f1c06f6c4c418801276e8b01fd12f84a98 /package/libunwind
parente8c044e1bd788d18410b981ff08635c4b2b9de4e (diff)
downloadbuildroot-60aee0cc5afb85976ca3b346f82b2caadc3a1c21.tar.gz
buildroot-60aee0cc5afb85976ca3b346f82b2caadc3a1c21.zip
package/libunwind: disable for x86 with musl
libunwind use sigreturn() and setcontext() while building for x86 [1] but this function is not available with musl [2]. This throw a warning during libunwind build: In file included from x86/Los-linux.c:4:0: x86/Gos-linux.c: In function ‘_ULx86_local_resume’: x86/Gos-linux.c:298:7: warning: implicit declaration of function ‘sigreturn’ [-Wimplicit-function-declaration] sigreturn (sc); ^ But any program trying to link against libunwind-generic.so or libunwind.so fail to build: [...]/usr/lib/libunwind-generic.so: undefined reference to `sigreturn' [...]/usr/lib/libunwind-generic.so: undefined reference to `setcontext' collect2: error: ld returned 1 exit status Disable libunwind for x86 target when musl is used. Reported upstream by Waldemar [3] [1] http://git.savannah.gnu.org/gitweb/?p=libunwind.git;a=blob;f=src/x86/Gos-linux.c;h=17aebc2974af50eb0bf8292689b2ed22a4c97866;hb=HEAD#l299 [2] http://openwall.com/lists/musl/2016/02/04/3 [3] http://lists.nongnu.org/archive/html/libunwind-devel/2017-04/msg00030.html Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Waldemar Brodkorb <wbx@openadk.org> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libunwind')
-rw-r--r--package/libunwind/Config.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/libunwind/Config.in b/package/libunwind/Config.in
index 2003e96518..1a2531716f 100644
--- a/package/libunwind/Config.in
+++ b/package/libunwind/Config.in
@@ -16,7 +16,7 @@ config BR2_PACKAGE_LIBUNWIND_ARCH_SUPPORTS
(BR2_ARM_CPU_HAS_ARM || BR2_mips || BR2_mipsel || \
BR2_mips64 || BR2_mips64el || BR2_x86_64)
default y if BR2_TOOLCHAIN_USES_MUSL && \
- (BR2_ARM_CPU_HAS_ARM || BR2_i386 || BR2_x86_64)
+ (BR2_ARM_CPU_HAS_ARM || BR2_x86_64)
config BR2_PACKAGE_LIBUNWIND
bool "libunwind"
OpenPOWER on IntegriCloud