scons: Add LIBRARY_PATH from the user environment to Scons

This patch adds the LIBRARY_PATH from the users OS environment to
Scons build environment. This path is used when linking to search for
libraries, and this patch enables tcmalloc to be used during the build
even if it is not placed in the default search paths.
This commit is contained in:
Andreas Hansson 2012-07-12 12:56:11 -04:00
parent 019ced8d85
commit 55bfe13705

View file

@ -177,8 +177,8 @@ termcap = get_termcap(GetOption('use_colors'))
# Set up the main build environment. # Set up the main build environment.
# #
######################################################################## ########################################################################
use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH', 'PATH', use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH',
'PYTHONPATH', 'RANLIB', 'SWIG' ]) 'LIBRARY_PATH', 'PATH', 'PYTHONPATH', 'RANLIB', 'SWIG' ])
use_env = {} use_env = {}
for key,val in os.environ.iteritems(): for key,val in os.environ.iteritems():