From 1f5ef5c8769bd257c73592744f0a305023f142e7 Mon Sep 17 00:00:00 2001 From: Geoffrey Malcolm Oxberry Date: Tue, 11 Sep 2018 22:44:52 -0700 Subject: darwin: cut DYLD_LIBRARY_PATH from default modules This commit removes the DYLD_LIBRARY_PATH variable from the default modules.yaml for darwin. The rationale behind deleting this environment variable is that paths in this environment variable take precedence over the default locations of libraries (usually the install path of the library), which can lead to linking errors in some circumstances. For example, executables intended to link with Apple's system BLAS and LAPACK will instead link to a spack-installed implementation (e.g., OpenBLAS), causing runtime errors. These errors are resolved by instead relying on paths set in DYLD_FALLBACK_LIBRARY_PATH, which is lower in precedence than default locations of libraries. --- etc/spack/defaults/darwin/modules.yaml | 2 -- 1 file changed, 2 deletions(-) (limited to 'etc') diff --git a/etc/spack/defaults/darwin/modules.yaml b/etc/spack/defaults/darwin/modules.yaml index 570aec2e84..a90cc24c60 100644 --- a/etc/spack/defaults/darwin/modules.yaml +++ b/etc/spack/defaults/darwin/modules.yaml @@ -16,8 +16,6 @@ modules: prefix_inspections: lib: - - DYLD_LIBRARY_PATH - DYLD_FALLBACK_LIBRARY_PATH lib64: - - DYLD_LIBRARY_PATH - DYLD_FALLBACK_LIBRARY_PATH -- cgit v1.2.3-70-g09d2