1f5ef5c876
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.
21 lines
764 B
YAML
21 lines
764 B
YAML
# -------------------------------------------------------------------------
|
|
# This is the default configuration for Spack's module file generation.
|
|
#
|
|
# Settings here are versioned with Spack and are intended to provide
|
|
# sensible defaults out of the box. Spack maintainers should edit this
|
|
# file to keep it current.
|
|
#
|
|
# Users can override these settings by editing the following files.
|
|
#
|
|
# Per-spack-instance settings (overrides defaults):
|
|
# $SPACK_ROOT/etc/spack/modules.yaml
|
|
#
|
|
# Per-user settings (overrides default and site settings):
|
|
# ~/.spack/modules.yaml
|
|
# -------------------------------------------------------------------------
|
|
modules:
|
|
prefix_inspections:
|
|
lib:
|
|
- DYLD_FALLBACK_LIBRARY_PATH
|
|
lib64:
|
|
- DYLD_FALLBACK_LIBRARY_PATH
|