summaryrefslogtreecommitdiffstats
path: root/package/ltrace/ltrace-0.5-fix-build-without-USE_DEMANGLE.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-07-22 09:23:53 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-07-22 09:23:53 +0200
commit80890ab0ec1218d83c19b9fcab0e98a913380747 (patch)
treef3707676fc80d1fa814915fe87d766a1cfbeb338 /package/ltrace/ltrace-0.5-fix-build-without-USE_DEMANGLE.patch
parent519fed5f73d0510c37500463ccde529729e4c7f6 (diff)
downloadbuildroot-novena-80890ab0ec1218d83c19b9fcab0e98a913380747.tar.gz
buildroot-novena-80890ab0ec1218d83c19b9fcab0e98a913380747.zip
ltrace: fix build without USE_DEMANGLE
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/ltrace/ltrace-0.5-fix-build-without-USE_DEMANGLE.patch')
-rw-r--r--package/ltrace/ltrace-0.5-fix-build-without-USE_DEMANGLE.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/ltrace/ltrace-0.5-fix-build-without-USE_DEMANGLE.patch b/package/ltrace/ltrace-0.5-fix-build-without-USE_DEMANGLE.patch
new file mode 100644
index 000000000..180f68834
--- /dev/null
+++ b/package/ltrace/ltrace-0.5-fix-build-without-USE_DEMANGLE.patch
@@ -0,0 +1,27 @@
+[PATCH] ltrace: fix build when USE_DEMANGLE isn't enabled
+
+summary.c unconditionally calls my_demangle(), which is only available
+when USE_DEMANGLE is enabled (which requires libiberty).
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ summary.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+Index: ltrace-0.5/summary.c
+===================================================================
+--- ltrace-0.5.orig/summary.c
++++ ltrace-0.5/summary.c
+@@ -83,7 +83,12 @@ void show_summary(void)
+ (int)entries[i].tv.tv_sec, (int)entries[i].tv.tv_usec,
+ (unsigned long int)(c / entries[i].count),
+ entries[i].count,
++#ifdef USE_DEMANGLE
+ opt_C ? my_demangle(entries[i].name) : entries[i].name);
++#else
++ entries[i].name);
++#endif
++
+ }
+ printf
+ ("------ ----------- ----------- --------- --------------------\n");