From 54948d111305314fbab01d051209e16750a120a7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Oct 2019 14:56:07 +0200 Subject: Don't link against librt on Windows or Darwin --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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', -- cgit v1.2.1