Linker/darwin: Properly honour -fno-use-rpaths
The specification is now simple
- On linux, use
-Xlinker -rpath -Xlinker
to set the rpath of the executable - On darwin, never use
-Xlinker -rpath -Xlinker
, always inject the rpath afterwards, seerunInjectRPaths
. - If
-fno-use-rpaths
is passed then never inject anything into the rpath.
Fixes #20004 (closed)
cc @angerman for review as the architect of the current logic.