diff options
Diffstat (limited to 'hadrian/src/Settings/Builders/Ghc.hs')
-rw-r--r-- | hadrian/src/Settings/Builders/Ghc.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hadrian/src/Settings/Builders/Ghc.hs b/hadrian/src/Settings/Builders/Ghc.hs index 3880a99562..29ca57a4f2 100644 --- a/hadrian/src/Settings/Builders/Ghc.hs +++ b/hadrian/src/Settings/Builders/Ghc.hs @@ -145,6 +145,10 @@ ghcLinkArgs = builder (Ghc LinkHs) ? do , isProgram pkg ? arg ("-optl-Wl,-rpath," ++ bindistRpath) -- The darwin linker doesn't support/require the -zorigin option , not osxHost ? arg "-optl-Wl,-zorigin" + -- We set RPATH directly (relative to $ORIGIN). There's + -- no reason for GHC to inject further RPATH entries. + -- See #19485. + , arg "-fno-use-rpaths" ] ] , arg "-no-auto-link-packages" |