diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-08-11 16:33:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 09:33:08 -0500 |
commit | ceda5fb46ccae8b2942d962c58a9011a56742e6e (patch) | |
tree | eaac47a49ed2076e719bf2bee06f519a67476c90 /etc | |
parent | e4d296dfc523afff5763205fe44f1b92fe2e6e76 (diff) | |
download | spack-ceda5fb46ccae8b2942d962c58a9011a56742e6e.tar.gz spack-ceda5fb46ccae8b2942d962c58a9011a56742e6e.tar.bz2 spack-ceda5fb46ccae8b2942d962c58a9011a56742e6e.tar.xz spack-ceda5fb46ccae8b2942d962c58a9011a56742e6e.zip |
Don't set `LD_LIBRARY_PATH` by default on Linux (#28354)
`LD_LIBRARY_PATH` can break system executables (e.g., when an enviornment is loaded) and isn't necessary thanks to `RPATH`s. Packages that require `LD_LIBRARY_PATH` can set this in `setup_run_environment`.
- [x] Prefix inspections no longer set `LD_LIBRARY_PATH` by default
- [x] Document changes and workarounds for people who want `LD_LIBRARY_PATH`
Diffstat (limited to 'etc')
-rw-r--r-- | etc/spack/defaults/cray/modules.yaml | 7 | ||||
-rw-r--r-- | etc/spack/defaults/linux/modules.yaml | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/etc/spack/defaults/cray/modules.yaml b/etc/spack/defaults/cray/modules.yaml index a86a4794f1..a80f87b16a 100644 --- a/etc/spack/defaults/cray/modules.yaml +++ b/etc/spack/defaults/cray/modules.yaml @@ -13,9 +13,4 @@ # Per-user settings (overrides default and site settings): # ~/.spack/modules.yaml # ------------------------------------------------------------------------- -modules: - prefix_inspections: - lib: - - LD_LIBRARY_PATH - lib64: - - LD_LIBRARY_PATH +modules: {} diff --git a/etc/spack/defaults/linux/modules.yaml b/etc/spack/defaults/linux/modules.yaml index a86a4794f1..a80f87b16a 100644 --- a/etc/spack/defaults/linux/modules.yaml +++ b/etc/spack/defaults/linux/modules.yaml @@ -13,9 +13,4 @@ # Per-user settings (overrides default and site settings): # ~/.spack/modules.yaml # ------------------------------------------------------------------------- -modules: - prefix_inspections: - lib: - - LD_LIBRARY_PATH - lib64: - - LD_LIBRARY_PATH +modules: {} |