diff options
-rw-r--r-- | SConstruct | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index d39b444202f..987f5e75137 100644 --- a/SConstruct +++ b/SConstruct @@ -675,8 +675,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__" ] ) @@ -810,6 +808,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"] |