mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
SERVER-14803 Support static-libstdc++ in any Unix
This commit is contained in:
parent
319b9319fe
commit
8240b32d3d
@ -735,8 +735,6 @@ elif linux:
|
||||
|
||||
if static:
|
||||
env.Append( LINKFLAGS=" -static " )
|
||||
if has_option( "static-libstdc++" ):
|
||||
env.Append( LINKFLAGS=["-static-libstdc++", "-static-libgcc"] )
|
||||
|
||||
elif solaris:
|
||||
env.Append( CPPDEFINES=[ "__sunos__" ] )
|
||||
@ -891,6 +889,9 @@ elif windows:
|
||||
env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1
|
||||
if nix:
|
||||
|
||||
if has_option( "static-libstdc++" ):
|
||||
env.Append( LINKFLAGS=["-static-libstdc++", "-static-libgcc"] )
|
||||
|
||||
if has_option( "distcc" ):
|
||||
env["CXX"] = "distcc " + env["CXX"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user