summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hadrian/src/Settings/Builders/Ghc.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/src/Settings/Builders/Ghc.hs b/hadrian/src/Settings/Builders/Ghc.hs
index 7fb3082a51..0d0d58a09f 100644
--- a/hadrian/src/Settings/Builders/Ghc.hs
+++ b/hadrian/src/Settings/Builders/Ghc.hs
@@ -82,8 +82,8 @@ ghcLinkArgs = builder (Ghc LinkHs) ? do
[ arg "-dynamic"
-- TODO what about windows?
, isLibrary pkg ? pure [ "-shared", "-dynload", "deploy" ]
- , notStage0 ?
- hostSupportsRPaths ? arg ("-optl-Wl,-rpath," ++ rpath)
+ , hostSupportsRPaths ? arg ("-optl-Wl,-rpath," ++ rpath)
+ , hostSupportsRPaths ? arg ("-optl-Wl,-rpath,$ORIGIN")
]
, arg "-no-auto-link-packages"
, nonHsMainPackage pkg ? arg "-no-hs-main"