packages/libs/pcre/patches/750-pcre_config_cross.patch

29 lines
693 B
Diff
Raw Normal View History

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