packages/libs/pcre/patches/750-pcre_config_cross.patch
olli 9872d7b827 pcre: (#1979)
* Update: 7.0 > 7.2
 * Refresh patches
 * Cleanup Makefile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@8001 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-16 06:51:11 +00:00

29 lines
693 B
Diff

Index: pcre-7.2/pcre-config.in
===================================================================
--- pcre-7.2.orig/pcre-config.in 2007-07-16 08:33:37.000000000 +0200
+++ pcre-7.2/pcre-config.in 2007-07-16 08:33:37.000000000 +0200
@@ -21,6 +21,10 @@
libR=" -Wl,-R@libdir@"
;;
esac
+libS=
+if test @libdir@ != /usr/lib ; then
+ libS=-L@libdir@
+fi
while test $# -gt 0; do
case "$1" in
@@ -55,10 +59,10 @@
echo $includes
;;
--libs-posix)
- echo -L@libdir@$libR -lpcreposix -lpcre
+ echo $libS$libR -lpcreposix -lpcre
;;
--libs)
- echo -L@libdir@$libR -lpcre
+ echo $libS$libR -lpcre
;;
*)
echo "${usage}" 1>&2