diff options
author | David Robillard <d@drobilla.net> | 2017-02-12 21:12:40 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-02-12 21:12:40 +0100 |
commit | 24ab5bbeb0dece32887d2702d786b76a877d0f59 (patch) | |
tree | d9fe4116683da1594fe48823b7396eac52fd978e /wscript | |
parent | 99458ff38158e80b58663df5b6ff2e7a91a7fd0f (diff) | |
download | sord-24ab5bbeb0dece32887d2702d786b76a877d0f59.tar.gz sord-24ab5bbeb0dece32887d2702d786b76a877d0f59.tar.bz2 sord-24ab5bbeb0dece32887d2702d786b76a877d0f59.zip |
Fix link warning on clang
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -61,7 +61,8 @@ def configure(conf): if conf.env.HAVE_PCRE: if conf.check(cflags=['-pthread'], mandatory=False): conf.env.PTHREAD_CFLAGS = ['-pthread'] - conf.env.PTHREAD_LINKFLAGS = ['-pthread'] + if conf.env.CC_NAME != 'clang': + conf.env.PTHREAD_LINKFLAGS = ['-pthread'] elif conf.check(linkflags=['-lpthread'], mandatory=False): conf.env.PTHREAD_CFLAGS = [] conf.env.PTHREAD_LINKFLAGS = ['-lpthread'] |