mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-29 00:58:51 +00:00
b196a612d6
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>
17 lines
423 B
Diff
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=''
|