packages/libs/pcre/patches/750-pcre_config_cross.patch
olli 4a63868fe0 [Packages] libs/pcre: Update to 7.6
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10467 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-16 10:39:38 +00:00

29 lines
693 B
Diff

Index: pcre-7.6/pcre-config.in
===================================================================
--- pcre-7.6.orig/pcre-config.in 2008-02-16 11:13:56.000000000 +0100
+++ pcre-7.6/pcre-config.in 2008-02-16 11:13:57.000000000 +0100
@@ -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