From 191d3c2b27c7460873b0d6786f02774db0822970 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sun, 25 Feb 2018 19:34:15 +0100 Subject: [PATCH] package/strace: enable demangling of C++ symbol names in stack trace Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- package/strace/strace.mk | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2