added apache and python
[librewrt/.git] / packages / libs / pcre / patches / 750-pcre_config_cross.patch
1 --- a/pcre-config.in
2 +++ b/pcre-config.in
3 @@ -24,6 +24,10 @@ case `uname -s` in
4    libR=" -Wl,-R@libdir@"
5    ;;
6  esac
7 +libS=
8 +if test @libdir@ != /usr/lib ; then
9 +  libS=-L@libdir@
10 +fi
11  
12  while test $# -gt 0; do
13    case "$1" in
14 @@ -58,10 +62,10 @@ while test $# -gt 0; do
15        echo $includes @PCRE_STATIC_CFLAG@
16        ;;
17      --libs-posix)
18 -      echo -L@libdir@$libR -lpcreposix -lpcre
19 +      echo $libS$libR -lpcreposix -lpcre
20        ;;
21      --libs)
22 -      echo -L@libdir@$libR -lpcre
23 +      echo $libS$libR -lpcre
24        ;;
25      --libs-cpp)
26        if test @enable_cpp@ = yes ; then