summaryrefslogtreecommitdiff
path: root/packages/ltrace/0.5.3/0008-lib-supcc.patch
blob: cbb1975c14aa82ec0fa9db147008f41771356609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
 configure |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/configure
+++ b/configure
@@ -78,7 +78,10 @@
 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=''