From cb0e56f7c7a25d4ffe99c575f6723b3900722958 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Wed, 8 Aug 2007 11:37:44 +0000 Subject: [PATCH] +- Fixed bug #41973 (./configure --with-ldap=shared fails with --- NEWS | 2 ++ ext/ldap/config.m4 | 6 +++--- 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 -- 2.40.0