summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-08-12 18:02:42 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-08-13 08:20:48 (GMT)
commit8a14dab8bdad1d819924d6039b16061fccef3df2 (patch)
treeb4793b5ebd060db8a3c51582309aa8b47f051c12
parent038227a9552a402f55b559b770e2ba9c0f3e0ec7 (diff)
downloadbuildroot-8a14dab8bdad1d819924d6039b16061fccef3df2.tar.gz
buildroot-8a14dab8bdad1d819924d6039b16061fccef3df2.tar.bz2
ltrace: disable libunwind for uClibc toolchains
ltrace requires that libunwind is built with backtrace() support. For the internal uClibc toolchain we don't enable it, and for external uClibc toolchains we can't know. It's also unavailable for static uClibc toolchains. So just disable libunwind support for uClibc toolchains in general. Fixes: http://autobuild.buildroot.net/results/ee0/ee037a19590fb85c64f97f78f74bcfd4d7766706/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/ltrace/ltrace.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/ltrace/ltrace.mk b/package/ltrace/ltrace.mk
index 7b8d859..55930b8 100644
--- a/package/ltrace/ltrace.mk
+++ b/package/ltrace/ltrace.mk
@@ -13,4 +13,15 @@ LTRACE_CONF_OPT = --disable-werror
LTRACE_LICENSE = GPLv2
LTRACE_LICENSE_FILES = COPYING
+# ltrace can use libunwind only if libc has backtrace() support
+# We don't normally do so for uClibc and we can't know if it's external
+ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),)
+LTRACE_CONF_OPT += --with-libunwind=yes
+LTRACE_DEPENDENCIES += libunwind
+else
+LTRACE_CONF_OPT += --with-libunwind=no
+endif
+endif
+
$(eval $(autotools-package))