summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--ext/ldap/config.m46
2 files changed, 5 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index d7171572a1..ef285fadbe 100644
--- 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
diff --git a/ext/ldap/config.m4 b/ext/ldap/config.m4
index 5f710b8233..4112d46811 100644
--- a/ext/ldap/config.m4
+++ b/ext/ldap/config.m4
@@ -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