diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2019-10-23 22:22:24 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-10-23 13:22:24 -0700 |
commit | b29eb4212e8d9077e0c01911c5448a5900210954 (patch) | |
tree | 4b5dc4685daf49c6bfa5ce4432f18bf9f8c1985c /etc/spack | |
parent | cd185c3d284b8086735db11e9ca77ba29f84c753 (diff) | |
download | spack-b29eb4212e8d9077e0c01911c5448a5900210954.tar.gz spack-b29eb4212e8d9077e0c01911c5448a5900210954.tar.bz2 spack-b29eb4212e8d9077e0c01911c5448a5900210954.tar.xz spack-b29eb4212e8d9077e0c01911c5448a5900210954.zip |
Users can configure use of RPATH or RUNPATH (#9168)
Add a new entry in `config.yaml`:
config:
shared_linking: 'rpath'
If this variable is set to `rpath` (the default) Spack will set RPATH in ELF binaries. If set to `runpath` it will set RUNPATH.
Details:
* Spack cc wrapper explicitly adds `--disable-new-dtags` when linking
* cc wrapper also strips `--enable-new-dtags` from the compile line
when disabling (and vice versa)
* We specifically do *not* add any dtags flags on macOS, which uses
Mach-O binaries, not ELF, so there's no RUNPATH)
Diffstat (limited to 'etc/spack')
-rw-r--r-- | etc/spack/defaults/config.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/spack/defaults/config.yaml b/etc/spack/defaults/config.yaml index d6c9551d93..6be1d9770b 100644 --- a/etc/spack/defaults/config.yaml +++ b/etc/spack/defaults/config.yaml @@ -138,3 +138,8 @@ config: # anticipates that a significant delay indicates that the lock attempt will # never succeed. package_lock_timeout: null + + # Control whether Spack embeds RPATH or RUNPATH attributes in ELF binaries. + # Has no effect on macOS. DO NOT MIX these within the same install tree. + # See the Spack documentation for details. + shared_linking: 'rpath' |