summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-07-28 17:25:36 -0400
committerEliot Horowitz <eliot@10gen.com>2010-07-28 17:25:36 -0400
commitafedeecec47025f265b2b1e5512c20bb0114cbe4 (patch)
tree76d0ebb5775ceaf1845392651b932431533ca084 /SConstruct
parent3711be466ece2cb5ea5cdf54da094f481a30add8 (diff)
downloadmongo-afedeecec47025f265b2b1e5512c20bb0114cbe4.tar.gz
don't use -Werror on solaris
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index cc9b1f6d090..fb9dd14077a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -741,7 +741,9 @@ else:
print( "No special config for [" + os.sys.platform + "] which probably means it won't work" )
if nix:
- env.Append( CPPFLAGS="-fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Werror -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch" )
+ env.Append( CPPFLAGS="-fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch" )
+ if not solaris:
+ env.Append( CPPFLAGS=" -Werror " )
env.Append( CXXFLAGS=" -Wnon-virtual-dtor " )
env.Append( LINKFLAGS=" -fPIC -pthread -rdynamic" )
env.Append( LIBS=[] )