aboutsummaryrefslogtreecommitdiffstats
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 29e1948..3bda14d 100644
--- a/wscript
+++ b/wscript
@@ -230,9 +230,11 @@ def build_spec(bld, path):
test_cflags = ['']
test_linkflags = ['']
if bld.is_defined('HAVE_GCOV'):
- test_lib += ['gcov', 'rt']
+ test_lib += ['gcov']
test_cflags += ['--coverage']
test_linkflags += ['--coverage']
+ if bld.env.DEST_OS not in ['darwin', 'win32']:
+ test_lib += ['rt']
# Unit test program
bld(features = 'c cprogram',