patches/ltrace/0.5.3/170-lib-supcc.patch
author Titus von Boxberg <titus@v9g.de>
Mon Aug 22 09:26:02 2011 +0200 (2011-08-22)
changeset 2630 f86af11138ea
permissions -rw-r--r--
debug/ltrace: Fix HOST_OS and ar

HOST_OS really is the target OS. Allow setting it for configure
via an environment variable.
libltrace.a should have an index:
Allow ar to be set as an environment variable, and generate
an index in this lib.

Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
     1 Index: ltrace-0.5.3/configure
     2 ===================================================================
     3 --- ltrace-0.5.3/configure
     4 +++ ltrace-0.5.3/configure
     5 @@ -78,7 +78,10 @@ fi
     6  rm -f conftest.c a.out
     7  
     8  CFLAGS='-g -O2'
     9 -LIBS='-lelf -lsupc++ -liberty '
    10 +LIBS='-lelf'
    11 +[ -n "$HAVE_LIBSUPC__" ] && LIBS="$LIBS -lsupc++"
    12 +[ -n "$HAVE_LIBIBERTY" ] && LIBS="$LIBS -liberty"
    13 +
    14  INSTALL='install -c'
    15  iquote='-iquote '
    16  iquoteend=''