summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/wscript b/wscript
index 4070c03..69a2219 100644
--- a/wscript
+++ b/wscript
@@ -102,8 +102,10 @@ def build(bld):
framework = ' CoreServices '
if bld.env.BUILD_TESTS:
- test_libs = ['pthread', 'rt']
+ test_libs = ['pthread']
test_cxxflags = []
+ if bld.env.DEST_OS != 'darwin' and bld.env.DEST_OS != 'win32':
+ test_libs += ['rt']
if bld.is_defined('HAVE_GCOV'):
test_libs += ['gcov']
test_cxxflags += ['-fprofile-arcs', '-ftest-coverage']