summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-05-15 05:42:55 (GMT)
committerRobert Schwebel <rsc@pengutronix.de>2010-05-15 05:42:55 (GMT)
commitb196a612d62453943f8aa414cf2989ec9294f105 (patch)
tree98714b9fd170987c523fcfb241085235bc41a2de /patches
parentc0927b7ac6e1990f554e2e23cc5448588e86d69e (diff)
debug/ltrace: fix LDFLAGS for libsupc++ and libiberty
The configure script correctly detects libsupc++ and libiberty, but in the linker stage it tries to link in both libraries without taking care of the test result. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> [yann.morin.1998@anciens.enib.fr: rework patch depth to be -p1] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'patches')
-rw-r--r--patches/ltrace/0.5.3/170-lib-supcc.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/ltrace/0.5.3/170-lib-supcc.patch b/patches/ltrace/0.5.3/170-lib-supcc.patch
new file mode 100644
index 0000000..8842b91
--- /dev/null
+++ b/patches/ltrace/0.5.3/170-lib-supcc.patch
@@ -0,0 +1,16 @@
+Index: ltrace-0.5.3/configure
+===================================================================
+--- ltrace-0.5.3/configure
++++ ltrace-0.5.3/configure
+@@ -78,7 +78,10 @@ fi
+ rm -f conftest.c a.out
+
+ CFLAGS='-g -O2'
+-LIBS='-lelf -lsupc++ -liberty '
++LIBS='-lelf'
++[ -n "$HAVE_LIBSUPC__" ] && LIBS="$LIBS -lsupc++"
++[ -n "$HAVE_LIBIBERTY" ] && LIBS="$LIBS -liberty"
++
+ INSTALL='install -c'
+ iquote='-iquote '
+ iquoteend=''