diff options
Diffstat (limited to 'collab/openldap/BUILD')
-rwxr-xr-x | collab/openldap/BUILD | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/collab/openldap/BUILD b/collab/openldap/BUILD index b08926fc04..c34f4ae40c 100755 --- a/collab/openldap/BUILD +++ b/collab/openldap/BUILD @@ -1,6 +1,10 @@ #Fails to build without extra CPPFLAG # See http://www.openldap.org/lists/openldap-bugs/200804/msg00074.html -CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS" +CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS" && + +if [[ "$SLAPD_LDBM" == "db" ]]; then + LDFLAGS="-ldb $LDFLAGS" +fi && OPTS="$OPTS $OPENLDAP_SLAPD $SLAPD_ACI $SLAPD_DNSSRV $SLAPD_MONITOR |