diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_environment.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index 5fa8a5d7de..70571570a9 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -159,6 +159,10 @@ def clean_environment(): env.unset('CPLUS_INCLUDE_PATH') env.unset('OBJC_INCLUDE_PATH') + # Avoid that libraries of build dependencies get hijacked. + env.unset('LD_PRELOAD') + env.unset('DYLD_INSERT_LIBRARIES') + # On Cray "cluster" systems, unset CRAY_LD_LIBRARY_PATH to avoid # interference with Spack dependencies. # CNL requires these variables to be set (or at least some of them, |