summaryrefslogtreecommitdiff
path: root/source4/wscript_build
diff options
context:
space:
mode:
Diffstat (limited to 'source4/wscript_build')
-rw-r--r--source4/wscript_build6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/wscript_build b/source4/wscript_build
index 48a4060b26..04fef67927 100644
--- a/source4/wscript_build
+++ b/source4/wscript_build
@@ -1,9 +1,15 @@
# top level waf build script for samba4
+import os
+srcdir = ".."
+
+bld.env.TOPDIR = os.path.normpath(os.path.join(os.environ.get('PWD'), srcdir))
+
# create separate build groups for building the asn1 and et compiler, then
# building the C from ASN1 and IDL, and finally the main build process
bld.SETUP_BUILD_GROUPS()
+bld.ENABLE_MAGIC_ORDERING()
bld.PREDECLARE('LIBNDR', 'LIBRARY')
bld.PREDECLARE('LIBSAMBA-UTIL', 'LIBRARY')