diff options
| -rw-r--r-- | hadrian/src/Settings/Builders/Ghc.hs | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/hadrian/src/Settings/Builders/Ghc.hs b/hadrian/src/Settings/Builders/Ghc.hs index 92f1e68ad6..7b0011c490 100644 --- a/hadrian/src/Settings/Builders/Ghc.hs +++ b/hadrian/src/Settings/Builders/Ghc.hs @@ -99,10 +99,9 @@ ghcLinkArgs = builder (Ghc LinkHs) ? do                  [ arg "-dynamic"                  -- TODO what about windows?                  , isLibrary pkg ? pure [ "-shared", "-dynload", "deploy" ] -                , hostSupportsRPaths ? pure -                    [ "-optl-Wl,-rpath," ++ rpath -                    , "-optl-Wl,-zorigin" -                    ] +                , hostSupportsRPaths ? arg ("-optl-Wl,-rpath," ++ rpath) +                -- The darwin linker doesn't support/require the -zorigin option +                , hostSupportsRPaths ? not darwin ? arg "-optl-Wl,-zorigin"                  ]              , arg "-no-auto-link-packages"              ,      nonHsMainPackage pkg  ? arg "-no-hs-main" | 
