summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2012-10-29 11:10:18 -0400
committerHari Khalsa <hkhalsa@10gen.com>2012-10-29 11:10:18 -0400
commit88b04683d0788a53aab83b3b3412542d2ce8ea26 (patch)
treeadbc27e33e1bf2a38d17269acab2d2d1001e7782 /SConstruct
parent8c07cabd457b89ecc2db7c990484a9c8d23325b8 (diff)
downloadmongo-88b04683d0788a53aab83b3b3412542d2ce8ea26.tar.gz
(should) fix build on most linux machines
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 77cfd13e0ae..79285aa593e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -677,6 +677,9 @@ if nix:
# env.Append( " -Wconversion" ) TODO: this doesn't really work yet
if linux:
env.Append( CCFLAGS=["-Werror", "-pipe"] )
+ # S2 uses hash_map and hash_set, and some versions of the C++
+ # includes don't provide a #define to prevent a #warning...sigh.
+ env.Append( CCFLAGS=["-Wno-deprecated"] )
if not has_option('clang'):
env.Append( CCFLAGS=["-fno-builtin-memcmp"] ) # glibc's memcmp is faster than gcc's