aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-17 14:56:07 +0200
committerDavid Robillard <d@drobilla.net>2019-10-17 14:56:07 +0200
commit54948d111305314fbab01d051209e16750a120a7 (patch)
tree1817819fcca8adea8c0cad6d02b0689b0b608e91 /wscript
parentee5cfcfaf9b7dd66c6eed72c538c8fbe599711c4 (diff)
downloadlv2-54948d111305314fbab01d051209e16750a120a7.tar.xz
Don't link against librt on Windows or Darwin
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',