We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7680974 commit 88a083cCopy full SHA for 88a083c
pcre2-config.in
@@ -23,8 +23,8 @@ fi
23
usage="Usage: pcre2-config [--prefix] [--exec-prefix] [--version] $libs $cflags"
24
25
if test $# -eq 0; then
26
- echo "${usage}" 1>&2
27
- exit 1
+ echo "${usage}" 1>&2
+ exit 1
28
fi
29
30
libR=
@@ -38,9 +38,14 @@ case `uname -s` in
38
esac
39
40
libS=
41
-if test @libdir@ != /usr/lib ; then
42
- libS=-L@libdir@
43
-fi
+case "@libdir@" in
+ /usr/lib|/usr/lib32|/usr/lib64|/usr/lib/*-gnu*|/lib|/lib32|/lib64|/lib/*-gnu*)
+ # system locations, no -L needed
44
+ ;;
45
+ *)
46
+ libS="-L@libdir@"
47
48
+esac
49
50
while test $# -gt 0; do
51
case "$1" in
0 commit comments