diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-09 12:35:07 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-09 12:37:20 -0700 |
commit | 7ad01550c0d3e6be8e9461beb2baedc09bc06fdd (patch) | |
tree | fc0f154d47b32f2611edb57f81904b192259d784 /SConstruct | |
parent | 4fccd5a1752fe6662f69c31beb18cc3d44bb9e00 (diff) | |
download | gpsd-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-- | SConstruct | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)]) |