diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-07-28 17:25:36 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-07-28 17:25:36 -0400 |
commit | afedeecec47025f265b2b1e5512c20bb0114cbe4 (patch) | |
tree | 76d0ebb5775ceaf1845392651b932431533ca084 /SConstruct | |
parent | 3711be466ece2cb5ea5cdf54da094f481a30add8 (diff) | |
download | mongo-afedeecec47025f265b2b1e5512c20bb0114cbe4.tar.gz |
don't use -Werror on solaris
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
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=[] ) |