From ce53de926bcc86cdefd9f0ca463fe4c1191f20c0 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Mon, 31 Dec 2018 18:24:12 +0000 Subject: [PATCH] ITS#8948 - Fix BDB lib to only be linked with static backend --- configure.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 5244b15f32..9445ba0edd 100644 --- a/configure.in +++ b/configure.in @@ -1866,7 +1866,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