diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-07-01 20:13:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 20:13:32 -0700 |
commit | 0de4ba738bc19e7278b78fe118ce68bfded264c3 (patch) | |
tree | a36159fb175b25979ce7af646486bc99ebcedf98 | |
parent | e837be1af9e546cd6ec44d4b82103755bc2c77a8 (diff) | |
parent | 31e9ded768b56d076eb452b56d1b5c94ac341761 (diff) | |
download | spack-0de4ba738bc19e7278b78fe118ce68bfded264c3.tar.gz spack-0de4ba738bc19e7278b78fe118ce68bfded264c3.tar.bz2 spack-0de4ba738bc19e7278b78fe118ce68bfded264c3.tar.xz spack-0de4ba738bc19e7278b78fe118ce68bfded264c3.zip |
Merge pull request #1157 from glennpj/envclean
Remove more variables from build environment
-rw-r--r-- | lib/spack/spack/build_environment.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index 99c4cae020..7220539886 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -266,6 +266,8 @@ def set_build_environment_variables(pkg, env): # can affect how some packages find libraries. We want to make # sure that builds never pull in unintended external dependencies. env.unset('LD_LIBRARY_PATH') + env.unset('LIBRARY_PATH') + env.unset('CPATH') env.unset('LD_RUN_PATH') env.unset('DYLD_LIBRARY_PATH') |