diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-12-23 02:37:03 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-12-23 02:37:03 -0500 |
commit | 14a2ac2ff9330c77a348502896accd2d12db982f (patch) | |
tree | c8022f1c4f2275bbf9e763c42a605f4b097bdd31 /SConstruct | |
parent | 947e48ee9afa8adfc6e4f2c242d1b2136d6a7019 (diff) | |
download | mongo-14a2ac2ff9330c77a348502896accd2d12db982f.tar.gz |
add static-libstdc++ option to scons
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index cca1f7c075e..e688ebd625f 100644 --- a/SConstruct +++ b/SConstruct @@ -143,7 +143,8 @@ add_option( "full", "include client and headers when doing scons install", 0 , F # linking options add_option( "release" , "release build" , 0 , True ) -add_option( "static" , "fully static build" , 0 , True ) +add_option( "static" , "fully static build" , 0 , False ) +add_option( "static-libstdc++" , "statically link libstdc++" , 0 , False ) # base compile flags add_option( "64" , "whether to force 64 bit" , 0 , True , "force64" ) @@ -518,6 +519,8 @@ elif os.sys.platform.startswith("linux"): if static: env.Append( LINKFLAGS=" -static " ) + if has_option( "static-libstdc++" ): + env.Append( LINKFLAGS=" -static-libstdc++ " ) elif "sunos5" == os.sys.platform: nix = True |