summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorGeoffrey Malcolm Oxberry <goxberry@gmail.com>2018-09-11 22:44:52 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2020-04-16 16:17:35 -0700
commit1f5ef5c8769bd257c73592744f0a305023f142e7 (patch)
treec6162e3e5a74f8319847d4f7c008f5a05ccb943c /etc
parentbacbaeb5638cf39196ed8cf3d18f665c208219da (diff)
downloadspack-1f5ef5c8769bd257c73592744f0a305023f142e7.tar.gz
spack-1f5ef5c8769bd257c73592744f0a305023f142e7.tar.bz2
spack-1f5ef5c8769bd257c73592744f0a305023f142e7.tar.xz
spack-1f5ef5c8769bd257c73592744f0a305023f142e7.zip
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/spack/defaults/darwin/modules.yaml2
1 files changed, 0 insertions, 2 deletions
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