diff options
author | Tad Marshall <tad@10gen.com> | 2013-04-15 09:21:17 -0400 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2013-04-18 12:03:29 -0400 |
commit | f1bc52b19bbd126d5d3c53c230173bae493741a9 (patch) | |
tree | b00e0848608f15c6c7a97448e439342ecd0227b6 /src/third_party/s2 | |
parent | 0963b26bb78c85016781140c0b647877a6456ecc (diff) | |
download | mongo-f1bc52b19bbd126d5d3c53c230173bae493741a9.tar.gz |
SERVER-9325 Add __C99FEATURES__ CPPDEFINE for Solaris to enable isinf()
This makes the build compile on Solaris 11.1 in addition to SmartOS.
Diffstat (limited to 'src/third_party/s2')
-rwxr-xr-x | src/third_party/s2/util/math/SConscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/third_party/s2/util/math/SConscript b/src/third_party/s2/util/math/SConscript index 8ad3ee125f1..af51445de1d 100755 --- a/src/third_party/s2/util/math/SConscript +++ b/src/third_party/s2/util/math/SConscript @@ -7,6 +7,10 @@ env = env.Clone() env.Append(CCFLAGS=['-Isrc/third_party/s2']) env.Append(CCFLAGS=['-Isrc/third_party/gflags-2.0/src']) +if solaris: + # Enables declaration of isinf() on Solaris + env.Append(CPPDEFINES=['__C99FEATURES__']) + env.StaticLibrary("math", [ "mathutil.cc", # "mathlimits.cc", |