summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-05 20:23:05 -0400
committerDavid Robillard <d@drobilla.net>2016-09-05 20:23:05 -0400
commitf1248a8dd3a6e67cd0e61e66ea92ad54b4b2b20b (patch)
treec360aa4e12200b8752b3577daa15c1c2c7183390 /wscript
parent67d9bb847d8f77cf7c2f4156dff21fc1ace264c7 (diff)
downloadraul-f1248a8dd3a6e67cd0e61e66ea92ad54b4b2b20b.tar.gz
raul-f1248a8dd3a6e67cd0e61e66ea92ad54b4b2b20b.tar.bz2
raul-f1248a8dd3a6e67cd0e61e66ea92ad54b4b2b20b.zip
Fix thread compilation on some systems
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index 5ebd519..5c63aab 100644
--- a/wscript
+++ b/wscript
@@ -94,9 +94,12 @@ def build(bld):
framework = ' CoreServices '
if bld.env.BUILD_TESTS:
- test_libs = ['pthread']
+ test_libs = []
test_cxxflags = []
test_linkflags = []
+ if bld.env.DEST_OS != 'win32':
+ test_cxxflags = ['-pthread']
+ test_linkflags = ['-pthread']
if bld.env.DEST_OS != 'darwin' and bld.env.DEST_OS != 'win32':
test_libs += ['rt']
if not bld.env.NO_COVERAGE: