summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-03-09 12:35:07 -0700
committerGary E. Miller <gem@rellim.com>2015-03-09 12:37:20 -0700
commit7ad01550c0d3e6be8e9461beb2baedc09bc06fdd (patch)
treefc0f154d47b32f2611edb57f81904b192259d784 /SConstruct
parent4fccd5a1752fe6662f69c31beb18cc3d44bb9e00 (diff)
downloadgpsd-7ad01550c0d3e6be8e9461beb2baedc09bc06fdd.tar.gz
OS X fixed warns on -pthread,
OS X aliases gcc to clang. clang accept -pthread, then complains about it being unused. So just omit -pthread on darwin. Only one warning type left. OS X complains daemon() is deprecated, but provides no alternative except launchd. OS X builds and install fine. check still broken.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 7efc58ca..0a16e48a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -505,7 +505,9 @@ else:
if option not in config.env['CFLAGS']:
config.CheckCompilerOption(option)
- if config.CheckCompilerOption("-pthread"):
+ # OS X aliases gcc to clang
+ # clang accepts -pthread, then warns it is unused.
+ if config.CheckCompilerOption("-pthread") and not sys.platform.startswith('darwin'):
env.MergeFlags("-pthread")
env.Prepend(LIBPATH=[os.path.realpath(os.curdir)])