summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-20 18:56:45 +0100
committerDavid Robillard <d@drobilla.net>2017-03-20 18:56:45 +0100
commit1453cdcceedf1f368b6a0835e84c33f7c3d0f09f (patch)
tree093a245e9bc351102379f36ae902192b5b3db917 /wscript
parent8f13d4d5bb46a748fb6aa76ce080d4d22ce45e21 (diff)
downloadingen-1453cdcceedf1f368b6a0835e84c33f7c3d0f09f.tar.gz
ingen-1453cdcceedf1f368b6a0835e84c33f7c3d0f09f.tar.bz2
ingen-1453cdcceedf1f368b6a0835e84c33f7c3d0f09f.zip
Fix link warnings with clang on OSX
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index 56263baa..fe417bf9 100644
--- a/wscript
+++ b/wscript
@@ -159,7 +159,8 @@ def configure(conf):
if conf.check(cflags=['-pthread'], mandatory=False):
conf.env.PTHREAD_CFLAGS = ['-pthread']
if conf.check(linkflags=['-pthread'], mandatory=False):
- conf.env.PTHREAD_LINKFLAGS += ['-pthread']
+ if not (conf.env.DEST_OS == 'darwin' and conf.env.CXX_NAME == 'clang'):
+ conf.env.PTHREAD_LINKFLAGS += ['-pthread']
if conf.check(linkflags=['-lpthread'], mandatory=False):
conf.env.PTHREAD_LINKFLAGS += ['-lpthread']