0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

SERVER-5791: SCons shouldn't die if HOME env var is not set

This commit is contained in:
Dan Crosta 2012-05-09 14:38:01 -04:00
parent 0a20dadfa0
commit 7d43615455

View File

@ -674,11 +674,11 @@ if nix:
env.Append( LIBS=[] )
#make scons colorgcc friendly
env['ENV']['HOME'] = os.environ['HOME']
try:
env['ENV']['TERM'] = os.environ['TERM']
except KeyError:
pass
for key in ('HOME', 'TERM'):
try:
env['ENV'][key] = os.environ[key]
except KeyError:
pass
if linux and has_option( "sharedclient" ):
env.Append( LINKFLAGS=" -Wl,--as-needed -Wl,-zdefs " )