To support demangeling, latrace requires libiberty. Demangeling is requiered
for C++ only (AFAIR), so let it be an option.

Signed-off-by: Juergen Borleis <j...@pengutronix.de>
---
 rules/latrace.in | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/rules/latrace.in b/rules/latrace.in
index 8aa6ae9..4ee5265 100644
--- a/rules/latrace.in
+++ b/rules/latrace.in
@@ -1,8 +1,21 @@
 ## SECTION=debug_tools
 
-config LATRACE
+menuconfig LATRACE
        tristate
-       prompt "latrace"
+       prompt "latrace                       "
+       select BINUTILS if LATRACE_DEMANGLE
        help
          A tool to trace library calls and get their statistics in a
          manner similar to the strace utility
+
+if LATRACE
+
+config LATRACE_DEMANGLE
+       bool
+       prompt "demangle supprt"
+       default y
+       help
+         Enable support for the demangle feature, required to trace C++ 
libraries
+         for example.
+
+endif
-- 
2.10.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to