From 1453cdcceedf1f368b6a0835e84c33f7c3d0f09f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 20 Mar 2017 18:56:45 +0100 Subject: Fix link warnings with clang on OSX --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wscript') 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'] -- cgit v1.2.1