diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-21 15:26:28 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-03-24 17:09:11 +0100 |
commit | e93b85dbd871d5d56a7bc13235820c488a41266f (patch) | |
tree | 0e6a97244dd33404fba6d40030f8e3f2d34b612e /source3/wscript_build | |
parent | 91e56961fd2a66378fab4d91245365441e546ab3 (diff) | |
download | samba-e93b85dbd871d5d56a7bc13235820c488a41266f.tar.gz samba-e93b85dbd871d5d56a7bc13235820c488a41266f.tar.xz samba-e93b85dbd871d5d56a7bc13235820c488a41266f.zip |
s3:wscript: only build ctdb_dummy.c if we have no cluster support
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/wscript_build')
-rwxr-xr-x | source3/wscript_build | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/source3/wscript_build b/source3/wscript_build index 9fc33ceb1c5..02a5c7d58a7 100755 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -270,22 +270,34 @@ bld.SAMBA3_SUBSYSTEM('samba3util', lib/sock_exec.c''', deps='ndr samba-security NDR_SECURITY samba-util util_tdb ccan-hash') -bld.SAMBA3_LIBRARY('samba-cluster-support', - source=''' +if bld.CONFIG_GET("CTDB_CFLAGS"): + SAMBA_CLUSTER_SUPPORT_SOURCES=''' lib/cluster_support.c - lib/ctdb_dummy.c lib/dbwrap/dbwrap_ctdb.c lib/messages_ctdbd.c lib/ctdb_packet.c lib/ctdbd_conn.c lib/ctdb_conn.c torture/test_ctdbconn.c - ''', - deps=''' + ''' + SAMBA_CLUSTER_SUPPORT_DEPS=''' talloc tevent tdb - ''', + ''' +else: + SAMBA_CLUSTER_SUPPORT_SOURCES=''' + lib/cluster_support.c + lib/ctdb_dummy.c + ''' + SAMBA_CLUSTER_SUPPORT_DEPS=''' + talloc + tevent + ''' + +bld.SAMBA3_LIBRARY('samba-cluster-support', + source=SAMBA_CLUSTER_SUPPORT_SOURCES, + deps=SAMBA_CLUSTER_SUPPORT_DEPS, cflags=bld.CONFIG_GET("CTDB_CFLAGS"), allow_undefined_symbols=True, private_library=True) |