aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-11 15:51:26 +0000
committerlloyd <[email protected]>2008-10-11 15:51:26 +0000
commita91b6a50bac23a4c21b128c678af9941496e78ca (patch)
treeb82454923eecdbc9afd2c042efcee5175672e755
parent86157e5f8774fb63f02d84355196b6d9dd6d6bd5 (diff)
Modify botan-config so --libs does not use -L if the prefix is /usr or
/usr/local (same as -I)
-rw-r--r--src/build-data/botan-config.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/build-data/botan-config.in b/src/build-data/botan-config.in
index 0d1775a55..98588cb50 100644
--- a/src/build-data/botan-config.in
+++ b/src/build-data/botan-config.in
@@ -52,7 +52,12 @@ while test $# -gt 0; do
fi
;;
--libs)
- echo -L$prefix/$libdir @{var:link_to} -lbotan
+ if [ $prefix != "/usr" -a $prefix != "/usr/local" ]
+ then
+ echo -n "-L$prefix/$libdir "
+ fi
+
+ echo @{var:link_to} -lbotan
;;
*)
usage