summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/strace/strace.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/strace/strace.mk b/package/strace/strace.mk
index 4d42085819..7b3ff184fb 100644
--- a/package/strace/strace.mk
+++ b/package/strace/strace.mk
@@ -18,6 +18,14 @@ else
STRACE_CONF_OPTS += --without-libunwind
endif
+# Demangling symbols in stack trace needs libunwind and libiberty.
+ifeq ($(BR2_PACKAGE_BINUTILS)$(BR2_PACKAGE_LIBUNWIND),yy)
+STRACE_DEPENDENCIES += binutils
+STRACE_CONF_OPTS += --with-libiberty=check
+else
+STRACE_CONF_OPTS += --without-libiberty
+endif
+
define STRACE_REMOVE_STRACE_GRAPH
rm -f $(TARGET_DIR)/usr/bin/strace-graph
endef
OpenPOWER on IntegriCloud