debug/ltrace: fix LDFLAGS for libsupc++ and libiberty
authorRobert Schwebel <rsc@pengutronix.de>
Sat May 15 07:42:55 2010 +0200 (2010-05-15)
changeset 1968dc6e202afe24
parent 1967 9d6f3c433257
child 1969 618a1ffd1ea2
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>
patches/ltrace/0.5.3/170-lib-supcc.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/ltrace/0.5.3/170-lib-supcc.patch	Sat May 15 07:42:55 2010 +0200
     1.3 @@ -0,0 +1,16 @@
     1.4 +Index: ltrace-0.5.3/configure
     1.5 +===================================================================
     1.6 +--- ltrace-0.5.3/configure
     1.7 ++++ ltrace-0.5.3/configure
     1.8 +@@ -78,7 +78,10 @@ fi
     1.9 + rm -f conftest.c a.out
    1.10 + 
    1.11 + CFLAGS='-g -O2'
    1.12 +-LIBS='-lelf -lsupc++ -liberty '
    1.13 ++LIBS='-lelf'
    1.14 ++[ -n "$HAVE_LIBSUPC__" ] && LIBS="$LIBS -lsupc++"
    1.15 ++[ -n "$HAVE_LIBIBERTY" ] && LIBS="$LIBS -liberty"
    1.16 ++
    1.17 + INSTALL='install -c'
    1.18 + iquote='-iquote '
    1.19 + iquoteend=''