From a91b6a50bac23a4c21b128c678af9941496e78ca Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 11 Oct 2008 15:51:26 +0000 Subject: Modify botan-config so --libs does not use -L if the prefix is /usr or /usr/local (same as -I) --- src/build-data/botan-config.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/build-data/botan-config.in') 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 -- cgit v1.2.3