From 0f83fd68cce622014a6a4d7c549d778c776bcd46 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 15 Jul 2010 08:00:52 +0000 Subject: [PATCH] Add also Mozilla NSS crypto for LDAP, as it requires it now. Patch by Rich Megginson --- evolution-data-server.spec | 7 +++++++ 1 file changed, 7 insertions(+) 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