From bf21fccffd50775217fbe3f417eb0216377f1942 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 28 Jul 2014 22:17:27 +0000 Subject: Fixes for clang. --- wscript | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index b978170..2e888aa 100644 --- a/wscript +++ b/wscript @@ -328,11 +328,13 @@ def build_ext(bld, path): # Build test program if applicable if bld.env.BUILD_TESTS and bld.path.find_node(path + '/%s-test.c' % name): - test_lib = [] - test_cflags = [''] + test_lib = [] + test_cflags = [''] + test_linkflags = [''] if bld.is_defined('HAVE_GCOV'): - test_lib += ['gcov'] - test_cflags += ['-fprofile-arcs', '-ftest-coverage'] + test_lib += ['gcov', 'rt'] + test_cflags += ['--coverage'] + test_linkflags += ['--coverage'] # Unit test program bld(features = 'c cprogram', @@ -340,7 +342,8 @@ def build_ext(bld, path): lib = test_lib, target = path + '/%s-test' % name, install_path = None, - cflags = test_cflags) + cflags = test_cflags, + linkflags = test_linkflags) # Install bundle bld.install_files(bundle_dir, -- cgit v1.2.1