crosstool-ng/patches/ltrace/0.5.3/170-lib-supcc.patch
Yann E. MORIN" b196a612d6 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>
2010-05-15 07:42:55 +02:00

17 lines
423 B
Diff

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=''