[Packages] libs/pcre: Update to 7.6
[openwrt/svn-archive/archive.git] / libs / pcre / patches / 750-pcre_config_cross.patch
1 Index: pcre-7.6/pcre-config.in
2 ===================================================================
3 --- pcre-7.6.orig/pcre-config.in 2008-02-16 11:13:56.000000000 +0100
4 +++ pcre-7.6/pcre-config.in 2008-02-16 11:13:57.000000000 +0100
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