diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2024-10-14 12:35:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 12:35:50 +0200 |
commit | 8b3d3ac2de3809479f1594e4afec7587abfe8e55 (patch) | |
tree | e770981c0108b8cec60680ee7b1615d04c5c9dd6 /etc | |
parent | b5610cdb8b27515ae9d75873802ff8c02aeff212 (diff) | |
download | spack-8b3d3ac2de3809479f1594e4afec7587abfe8e55.tar.gz spack-8b3d3ac2de3809479f1594e4afec7587abfe8e55.tar.bz2 spack-8b3d3ac2de3809479f1594e4afec7587abfe8e55.tar.xz spack-8b3d3ac2de3809479f1594e4afec7587abfe8e55.zip |
cmake: remove custom CMAKE_INSTALL_RPATH (#46685)
The CMake builder in Spack actually adds incorrect rpaths. They are
unfiltered and incorrectly ordered compared to what the compiler wrapper
adds.
There is no need to specify paths to dependencies in `CMAKE_INSTALL_RPATH`
because of two reasons:
1. CMake preserves "toolchain" rpaths, which includes the rpaths injected
by our compiler wrapper.
2. We use `CMAKE_INSTALL_RPATH_USE_LINK_PATH=ON`, so libraries we link
to are rpath'ed automatically.
However, CMake does not create install rpaths to directories in the package's
own install prefix, so we set `CMAKE_INSTALL_RPATH` to the educated guess
`<prefix>/{lib,lib64}`, but omit dependencies.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions