From: Alexander Bokovoy Date: Fri, 20 Jul 2018 09:32:20 +0000 (+0300) Subject: s4-dsdb: only build dsdb Python modules for AD DC X-Git-Tag: ldb-1.5.0~257 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1faaeb00b5b8217c7a2cb145673ceba847b94cf2;p=thirdparty%2Fsamba.git s4-dsdb: only build dsdb Python modules for AD DC BUG: https://bugzilla.samba.org/show_bug.cgi?id=13542 Signed-off-by: Alexander Bokovoy Reviewed-by: Jeremy Allison Reviewed-by: Guenther Deschner --- diff --git a/source4/dsdb/wscript_build b/source4/dsdb/wscript_build index be99e9950ef..34ba8edb44a 100644 --- a/source4/dsdb/wscript_build +++ b/source4/dsdb/wscript_build @@ -40,12 +40,14 @@ bld.SAMBA_MODULE('service_drepl', bld.SAMBA_LIBRARY('dsdb_garbage_collect_tombstones', source='kcc/garbage_collect_tombstones.c', deps='samdb RPC_NDR_DRSUAPI', - private_library=True) + private_library=True, + enabled=bld.AD_DC_BUILD_IS_ENABLED()) bld.SAMBA_LIBRARY('scavenge_dns_records', source='kcc/scavenge_dns_records.c', deps='samdb RPC_NDR_DRSUAPI dnsserver_common', - private_library=True) + private_library=True, + enabled=bld.AD_DC_BUILD_IS_ENABLED()) bld.SAMBA_MODULE('service_kcc', source='kcc/kcc_service.c kcc/kcc_connection.c kcc/kcc_periodic.c kcc/kcc_drs_replica_info.c', @@ -78,5 +80,6 @@ for env in bld.gen_python_environments(): # removes it so we end up with unresolved symbols. deps='samdb %s dcerpc com_err %s %s dsdb_garbage_collect_tombstones scavenge_dns_records' %\ (pyldb_util, pyrpc_util, pyparam_util), - realname='samba/dsdb.so' - ) + realname='samba/dsdb.so', + enabled=bld.AD_DC_BUILD_IS_ENABLED() + )