diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-07-12 12:56:11 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-07-12 12:56:11 -0400 |
commit | 55bfe13705a3eccdffb6846dd87df5f190b04c99 (patch) | |
tree | 6693d64871fbebea64ddee4df3d0a7cc94650bc4 /SConstruct | |
parent | 019ced8d85370510601b98b7673045844c831f2f (diff) | |
download | gem5-55bfe13705a3eccdffb6846dd87df5f190b04c99.tar.xz |
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.
Diffstat (limited to 'SConstruct')
-rwxr-xr-x | SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
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(): |