Skip to content
  • Matthew Pickering's avatar
    Linker/darwin: Properly honour -fno-use-rpaths · 827df61a
    Matthew Pickering authored and Zubin's avatar Zubin committed
    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
    
    (cherry picked from commit 6281a333)
    827df61a