]> granicus.if.org Git - php/commitdiff
+- Fixed bug #41973 (./configure --with-ldap=shared fails with
authorNuno Lopes <nlopess@php.net>
Wed, 8 Aug 2007 11:37:44 +0000 (11:37 +0000)
committerNuno Lopes <nlopess@php.net>
Wed, 8 Aug 2007 11:37:44 +0000 (11:37 +0000)
NEWS
ext/ldap/config.m4

diff --git a/NEWS b/NEWS
index d7171572a13aa04838171911ae4ea9cfafe8a50a..ef285fadbe6a88128863acf932edeb2bbfe2ce5a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,8 @@ PHP                                                                        NEWS
   more than once). (crrodriguez at suse dot de, Ilia)
 - Fixed bug #42195 (C++ compiler required always). (Jani)
 - Fixed bug #42082 (NodeList length zero should be empty). (Hannes)
+- Fixed bug #41973 (./configure --with-ldap=shared fails with
+  LDFLAGS="-Wl,--as-needed"). (Nuno)
 - Fixed bug #36492 (Userfilters can leak buckets). (Sara)
 
 02 Aug 2007, PHP 5.2.4RC1
index 5f710b823354599a53aea79c51811c7525816b7b..4112d468116944ca7e8f500450c7fde4f2b5b476 100644 (file)
@@ -159,9 +159,9 @@ if test "$PHP_LDAP" != "no"; then
   
   dnl Save original values
   _SAVE_CPPFLAGS=$CPPFLAGS
-  _SAVE_LDFLAGS=$LDFLAGS
+  _SAVE_LIBS=$LIBS
   CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
-  LDFLAGS="$LDFLAGS $LDAP_SHARED_LIBADD"
+  LIBS="$LIBS $LDAP_SHARED_LIBADD"
 
   dnl Check for 3 arg ldap_set_rebind_proc
   AC_CACHE_CHECK([for 3 arg ldap_set_rebind_proc], ac_cv_3arg_setrebindproc,
@@ -191,5 +191,5 @@ if test "$PHP_LDAP" != "no"; then
   
   dnl Restore original values
   CPPFLAGS=$_SAVE_CPPFLAGS
-  LDFLAGS=$_SAVE_LDFLAGS
+  LIBS=$_SAVE_LIBS
 fi