Skip to content

Linker/darwin: Properly honour -fno-use-rpaths

Matthew Pickering requested to merge wip/t20004 into master

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, see runInjectRPaths.
  • 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.

Merge request reports