summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tdb/wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tdb/wscript b/lib/tdb/wscript
index 9dd039f43c..7a67c20dae 100644
--- a/lib/tdb/wscript
+++ b/lib/tdb/wscript
@@ -47,8 +47,11 @@ def build(bld):
'tools/tdbtool.c',
'tdb')
+ s4_build = getattr(bld.env, '_SAMBA_BUILD_', 0) == 4
+
bld.SAMBA_PYTHON('pytdb',
'pytdb.c',
deps='tdb',
+ enabled=s4_build,
realname='tdb.so')