diff options
-rw-r--r-- | lib/spack/spack/build_environment.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index 97903075e1..82baaee256 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -171,6 +171,13 @@ def clean_environment(): env.unset('CMAKE_PREFIX_PATH') + # Affects GNU make, can e.g. indirectly inhibit enabling parallel build + env.unset('MAKEFLAGS') + # Could make testsuites attempt to color their output + env.unset('TERM') + # Tests of GUI widget libraries might try to connect to an X server + env.unset('DISPLAY') + # Avoid that libraries of build dependencies get hijacked. env.unset('LD_PRELOAD') env.unset('DYLD_INSERT_LIBRARIES') |