[packages] php5: fix cross compiling issue with -ldl
authormhei <mhei@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 24 Jul 2011 22:21:34 +0000 (22:21 +0000)
committermhei <mhei@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 24 Jul 2011 22:21:34 +0000 (22:21 +0000)
Php5's configure script seems to be a little bit buggy as
it disables dynamic library support during cross-compiling.

See also http://www.apachefriends.org/f/viewtopic.php?f=6&t=32367

For now, fix this by preventing the configure script overriding
the previously detected value.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@27763 3c298f89-4303-0410-b956-a3cf2f4a3e73

lang/php5/patches/950-Fix-dl-cross-compiling-issue.patch [new file with mode: 0644]

diff --git a/lang/php5/patches/950-Fix-dl-cross-compiling-issue.patch b/lang/php5/patches/950-Fix-dl-cross-compiling-issue.patch
new file mode 100644 (file)
index 0000000..81de7f8
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -15979,7 +15979,7 @@
+     ac_libs=$LIBS
+     LIBS="$LIBS -ldl"
+     if test "$cross_compiling" = yes; then
+-  found=no
++  found=$found
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 15986 "configure"