summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/nothreads.py9
-rw-r--r--buildtools/wafsamba/wafsamba.py5
2 files changed, 8 insertions, 6 deletions
diff --git a/buildtools/wafsamba/nothreads.py b/buildtools/wafsamba/nothreads.py
index d227ce1a97..9054a57af5 100644
--- a/buildtools/wafsamba/nothreads.py
+++ b/buildtools/wafsamba/nothreads.py
@@ -213,8 +213,7 @@ class Parallel(object):
assert (self.count == 0 or self.stop)
-# enable nothreads if -j1 is used from the makefile
-if os.environ.get('JOBS') == '1':
- import Runner
- Runner.process = process
- Runner.Parallel = Parallel
+# enable nothreads
+import Runner
+Runner.process = process
+Runner.Parallel = Parallel
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 5a48cb4ba1..a7258d3e9e 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -19,7 +19,10 @@ from samba_python import *
from samba_deps import *
from samba_bundled import *
import samba_conftests
-import nothreads
+
+# some systems have broken threading in python
+if os.environ.get('WAF_NOTHREADS') == '1':
+ import nothreads
LIB_PATH="shared"