]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8948 - Fix BDB lib to only be linked with static backend
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 31 Dec 2018 18:24:12 +0000 (18:24 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 31 Dec 2018 21:33:38 +0000 (21:33 +0000)
configure.in

index 2a4d29f78fa5f6b25f2c5cecac2126fcc3bd8623..2bd2a4382b8c88241024e1ececa486f31150bbea 100644 (file)
@@ -1899,7 +1899,13 @@ if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
                BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
        fi
 
-       SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
+       dnl link BDB library to slapd when there is a
+       dnl static BDB based backend in use
+       if test $ol_enable_bdb/$ol_enable_hdb != mod/mod ; then
+               if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
+                       SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
+               fi
+       fi
 
        ol_link_bdb=yes 
 fi