summaryrefslogtreecommitdiffstats
path: root/php-5.6.3-ldap_r.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-23 13:31:02 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-23 13:31:02 +0200
commitd4f9012f851983a4f0caff03f0365951f86acf71 (patch)
tree236fd54ad78a73b63a0b97358e250f9cb92e2d42 /php-5.6.3-ldap_r.patch
php 7.0.0beta2 (as bas package, new)
Diffstat (limited to 'php-5.6.3-ldap_r.patch')
-rw-r--r--php-5.6.3-ldap_r.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/php-5.6.3-ldap_r.patch b/php-5.6.3-ldap_r.patch
new file mode 100644
index 0000000..b335488
--- /dev/null
+++ b/php-5.6.3-ldap_r.patch
@@ -0,0 +1,17 @@
+
+Use -lldap_r by default.
+
+--- php-5.4.8/ext/ldap/config.m4.ldap_r
++++ php-5.4.8/ext/ldap/config.m4
+@@ -117,7 +117,10 @@ if test "$PHP_LDAP" != "no"; then
+ LDAP_PTHREAD=
+ fi
+
+- if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then
++ if test -f $LDAP_LIBDIR/libldap_r.$SHLIB_SUFFIX_NAME; then
++ PHP_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
++ PHP_ADD_LIBRARY_WITH_PATH(ldap_r, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
++ elif test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then
+ PHP_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+