From 47b5cf468ed9c2f7f691bdfb146c37e18b8c680c Mon Sep 17 00:00:00 2001 From: Gernot Tenchio Date: Wed, 7 Nov 2012 11:55:06 +0100 Subject: [PATCH] openldap: don't force debugging if SDECFG_DEBUG=0 --- network/openldap/openldap.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/network/openldap/openldap.conf b/network/openldap/openldap.conf index 020871eb8..afe330a43 100644 --- a/network/openldap/openldap.conf +++ b/network/openldap/openldap.conf @@ -45,7 +45,11 @@ hook_add premake 3 'eval $MAKE depend' pkgprefix -t bdb var_append CPP_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir bdb )" -var_append GCC_WRAPPER_APPEND ' ' "-DLDAP_DEBUG" +if [ "$SDECFG_DEBUG" = 1 ]; then + var_append extraconfopt ' ' '--enable-debug=yes' +else + var_append extraconfopt ' ' '--enable-debug=no' +fi # work around - needs to be fixed, treading support hangs ... -ReneR [ $arch = powerpc ] && var_append extraconfopt ' ' '--disable-bdb'