summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-02-08 09:44:27 -0500
committerAndy Schwerin <schwerin@10gen.com>2012-02-08 11:24:26 -0500
commit0b0a55509ed8fe26144e62f1476247478c6a2a53 (patch)
tree7e9e639bfd02697da81e607dfec57d6f833d71a4 /SConstruct
parent8294769d840677b813f443e58f1b73ced6dfcdb1 (diff)
downloadmongo-0b0a55509ed8fe26144e62f1476247478c6a2a53.tar.gz
Make SConstruct robust to TERM not being set.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 97c47ea14b7..f804a61f3c7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -707,7 +707,10 @@ if nix:
#make scons colorgcc friendly
env['ENV']['HOME'] = os.environ['HOME']
- env['ENV']['TERM'] = os.environ['TERM']
+ try:
+ env['ENV']['TERM'] = os.environ['TERM']
+ except KeyError:
+ pass
if linux and has_option( "sharedclient" ):
env.Append( LINKFLAGS=" -Wl,--as-needed -Wl,-zdefs " )