From b196a612d62453943f8aa414cf2989ec9294f105 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 15 May 2010 07:42:55 +0200 Subject: 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 [yann.morin.1998@anciens.enib.fr: rework patch depth to be -p1] Signed-off-by: "Yann E. MORIN" 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='' -- cgit v0.10.2-6-g49f6