aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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