diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-11-19 17:03:35 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-11-19 17:03:35 +0000 |
commit | 8e93f278ded1ac082d15af60dcf24fc6a8d2a672 (patch) | |
tree | 72e92ae5cd70f21458845ad2d50c797fa00b5061 /pcre-config.in | |
parent | 36199bc966081179ec228c7073d46aa619e9d918 (diff) | |
download | pcre-8e93f278ded1ac082d15af60dcf24fc6a8d2a672.tar.gz |
Remove -L from pcre-config when install is into /usr/lib (fixes
cross-compiling).
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@753 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre-config.in')
-rw-r--r-- | pcre-config.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pcre-config.in b/pcre-config.in index c50c9df..ccbf210 100644 --- a/pcre-config.in +++ b/pcre-config.in @@ -25,6 +25,11 @@ case `uname -s` in ;; esac +libS= +if test @libdir@ != /usr/lib ; then + libS=-L@libdir@ +fi + while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; @@ -58,10 +63,10 @@ while test $# -gt 0; do echo $includes @PCRE_STATIC_CFLAG@ ;; --libs-posix) - echo -L@libdir@$libR -lpcreposix -lpcre + echo $libS$libR -lpcreposix -lpcre ;; --libs) - echo -L@libdir@$libR -lpcre + echo $libS$libR -lpcre ;; --libs-cpp) if test @enable_cpp@ = yes ; then |