pcre: (#1979)
[openwrt/svn-archive/archive.git] / libs / pcre / patches / 750-pcre_config_cross.patch
1 Index: pcre-7.2/pcre-config.in
2 ===================================================================
3 --- pcre-7.2.orig/pcre-config.in 2007-07-16 08:33:37.000000000 +0200
4 +++ pcre-7.2/pcre-config.in 2007-07-16 08:33:37.000000000 +0200
5 @@ -21,6 +21,10 @@
6 libR=" -Wl,-R@libdir@"
7 ;;
8 esac
9 +libS=
10 +if test @libdir@ != /usr/lib ; then
11 + libS=-L@libdir@
12 +fi
13
14 while test $# -gt 0; do
15 case "$1" in
16 @@ -55,10 +59,10 @@
17 echo $includes
18 ;;
19 --libs-posix)
20 - echo -L@libdir@$libR -lpcreposix -lpcre
21 + echo $libS$libR -lpcreposix -lpcre
22 ;;
23 --libs)
24 - echo -L@libdir@$libR -lpcre
25 + echo $libS$libR -lpcre
26 ;;
27 *)
28 echo "${usage}" 1>&2