From: Quanah Gibson-Mount Date: Mon, 31 Dec 2018 18:24:12 +0000 (+0000) Subject: ITS#8948 - Fix BDB lib to only be linked with static backend X-Git-Tag: OPENLDAP_REL_ENG_2_4_48~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d441c810d7b6a6d72625d919e944a38363d6c8;p=thirdparty%2Fopenldap.git ITS#8948 - Fix BDB lib to only be linked with static backend --- diff --git a/configure.in b/configure.in index 2a4d29f78f..2bd2a4382b 100644 --- a/configure.in +++ b/configure.in @@ -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