summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-21 16:45:53 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-22 02:51:10 +0100
commit01047e0ba8256ff12345222517a905fd9d66a8b5 (patch)
treeafeca6dc1415f7bcf9cbc511cee80e0172c956b4
parent1bf4ff2ab2e5bca2c6d7e5840fe20bd3dbd20d74 (diff)
downloadsamba-01047e0ba8256ff12345222517a905fd9d66a8b5.tar.gz
samba-01047e0ba8256ff12345222517a905fd9d66a8b5.tar.bz2
samba-01047e0ba8256ff12345222517a905fd9d66a8b5.zip
s4-waf: fixed make test for toplevel
amazingly, os.putenv() is broken. If you do os.putenv('FOO', '1') and then do os.getenv('FOO') you don't get '1' Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--wscript3
1 files changed, 1 insertions, 2 deletions
diff --git a/wscript b/wscript
index a31939e6bb..b2e6f2a4ef 100644
--- a/wscript
+++ b/wscript
@@ -26,10 +26,9 @@ samba_dist.DIST_BLACKLIST('README Manifest Read-Manifest-Now Roadmap source3/ '
# install in /usr/local/samba by default
Options.default_prefix = '/usr/local/samba'
+os.environ['TOPLEVEL_BUILD'] = '1'
def set_options(opt):
- os.putenv('TOPLEVEL_BUILD', '1')
-
opt.BUILTIN_DEFAULT('NONE')
opt.PRIVATE_EXTENSION_DEFAULT('samba4')
opt.RECURSE('lib/replace')