Re:Rpath, or why lld doesn’t work on NixOS
by wyldfire on Tuesday March 15, 2022 @10:11PM
(#30694482)
The difference IIRC is the order they're used by the dynamic loader. One is prior to searching LD_LIBRARY_PATH, the other after.
[ Parent
| on HN ]
Re:Rpath, or why lld doesn’t work on NixOS
by nemetroid on Wednesday March 16, 2022 @04:36AM
(#30696558)
There's also a difference for transitive dependencies. From the Linux manpage for ld.so, about RUNPATH:
> Such directories are searched only to find those objects required by DT_NEEDED (direct dependencies) entries and do not apply to those objects' children, which must themselves have their own DT_RUNPATH entries. This is unlike DT_RPATH, which is applied to searches for all children in the dependency tree.