diff --git a/evolution-data-server.spec b/evolution-data-server.spec index 9a9e14c..0fd924f 100644 --- a/evolution-data-server.spec +++ b/evolution-data-server.spec @@ -141,6 +141,13 @@ if pkg-config openssl ; then else export LIBS="-lsasl2 -lssl -lcrypto" fi +# newer versions of openldap are built with Mozilla NSS crypto, so also need +# those libs to link with the static ldap libs +if pkg-config nss ; then + export LIBS="$LIBS `pkg-config --libs nss`" +else + export LIBS="$LIBS -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4" +fi %else %define ldap_flags --with-openldap=yes %endif