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:
parent
0a20dadfa0
commit
7d43615455
10
SConstruct
10
SConstruct
@ -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 " )
|
||||
|
Loading…
Reference in New Issue
Block a user