summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <acm@10gen.com>2013-03-16 12:45:18 -0400
committerAndrew Morrow <acm@10gen.com>2013-03-16 12:45:54 -0400
commit00421d40cbcb9af6447a4a6fb9a5f946490ec7df (patch)
tree3c18ee125a6de77e22254cff07ae3a94302b2d7e /SConstruct
parent2effa8a2aa831eb5a7b0f07e1e0a9628ff3f9340 (diff)
downloadmongo-00421d40cbcb9af6447a4a6fb9a5f946490ec7df.tar.gz
Work around old GCC that doesn't understand -Wno-error
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 5 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 6b8454a9666..60376affc5e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -707,8 +707,6 @@ if nix:
# env.Append( " -Wconversion" ) TODO: this doesn't really work yet
if linux or darwin:
env.Append( CCFLAGS=["-Werror", "-pipe"] )
- # Don't make deprecated declarations errors.
- env.Append( CCFLAGS=["-Wno-error=deprecated-declarations"] )
env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
@@ -957,6 +955,11 @@ def doConfigure(myenv):
if nix and linux:
AddToCCFLAGSIfSupported(myenv, "-fno-builtin-memcmp")
+ # Really, should be if using gcc or clang.
+ if linux or darwin:
+ # If possible, don't make deprecated declarations errors.
+ AddToCCFLAGSIfSupported(myenv, "-Wno-error=deprecated-declarations")
+
conf = Configure(myenv)
if use_system_version_of_library("boost"):