packages/libs/pcre/patches/750-pcre_config_cross.patch
rhk 415e4a4749 [packages] pcre: update to 8.02
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20368 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-22 14:25:18 +00:00

27 lines
588 B
Diff

--- a/pcre-config.in
+++ b/pcre-config.in
@@ -24,6 +24,10 @@ case `uname -s` in
libR=" -Wl,-R@libdir@"
;;
esac
+libS=
+if test @libdir@ != /usr/lib ; then
+ libS=-L@libdir@
+fi
while test $# -gt 0; do
case "$1" in
@@ -58,10 +62,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