diff --git a/server/openldap/actions.py b/server/openldap/actions.py
index de83f14301..ed0df63a30 100644
--- a/server/openldap/actions.py
+++ b/server/openldap/actions.py
@@ -51,8 +51,8 @@ def setup():
--enable-proctitle \
--enable-overlays=mod \
--with-pic \
- --without-cyrus-sasl \
--with-threads \
+ --with-cyrus-sasl \
--without-fetch \
--enable-crypt \
--enable-ipv6 \
@@ -71,13 +71,14 @@ def setup():
--disable-wrappers \
--disable-spasswd \
--disable-perl \
- --with-tls \
+ --without-tls \
--without-cyrus-sasl"
else: options += " --with-tls=moznss"
shelltools.export("AUTOMAKE", "/bin/true")
autotools.autoreconf("-fi")
autotools.configure(options)
+
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
diff --git a/server/openldap/pspec.xml b/server/openldap/pspec.xml
index 61d95fde56..e5998232bb 100644
--- a/server/openldap/pspec.xml
+++ b/server/openldap/pspec.xml
@@ -15,9 +15,11 @@
nss-devel
db-devel
+ openssl-devel
tcp-wrappers-devel
-
+ cyrus-sasl-devel
libtool-ltdl
+ groff
openldap-2.4.39-blfs_paths-1.patch