0
0
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:
Ernie Hershey 2014-08-06 12:06:56 -04:00
parent 319b9319fe
commit 8240b32d3d

View File

@ -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"]