diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-11-04 00:34:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 17:34:00 -0600 |
commit | b52be759788cf20f1458c80e6e005744f5856c73 (patch) | |
tree | a53db50ae7ca4ea9e779be099faee6581fc24eda /COPYRIGHT | |
parent | 7fc49c42ee27bcd2629e3ac112e63da460d9a26c (diff) | |
download | spack-b52be759788cf20f1458c80e6e005744f5856c73.tar.gz spack-b52be759788cf20f1458c80e6e005744f5856c73.tar.bz2 spack-b52be759788cf20f1458c80e6e005744f5856c73.tar.xz spack-b52be759788cf20f1458c80e6e005744f5856c73.zip |
Experimental binding of shared ELF libraries (#31948)
Adds another post install hook that loops over the install prefix, looking for shared libraries type of ELF files, and sets the soname to their own absolute paths.
The idea being, whenever somebody links against those libraries, the linker copies the soname (which is the absolute path to the library) as a "needed" library, so that at runtime the dynamic loader realizes the needed library is a path which should be loaded directly without searching.
As a result:
1. rpaths are not used for the fixed/static list of needed libraries in the dynamic section (only for _actually_ dynamically loaded libraries through `dlopen`), which largely solves the issue that Spack's rpaths are a heuristic (`<prefix>/lib` and `<prefix>/lib64` might not be where libraries really are...)
2. improved startup times (no library search required)
Diffstat (limited to 'COPYRIGHT')
0 files changed, 0 insertions, 0 deletions