From: Andreas Hansson Date: Thu, 12 Jul 2012 16:56:11 +0000 (-0400) Subject: scons: Add LIBRARY_PATH from the user environment to Scons X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55bfe13705a3eccdffb6846dd87df5f190b04c99;p=gem5.git 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. --- diff --git a/SConstruct b/SConstruct index b33495939..c832fa1b8 100755 --- a/SConstruct +++ b/SConstruct @@ -177,8 +177,8 @@ termcap = get_termcap(GetOption('use_colors')) # Set up the main build environment. # ######################################################################## -use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH', 'PATH', - 'PYTHONPATH', 'RANLIB', 'SWIG' ]) +use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH', + 'LIBRARY_PATH', 'PATH', 'PYTHONPATH', 'RANLIB', 'SWIG' ]) use_env = {} for key,val in os.environ.iteritems():