summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hadrian/src/Settings/Builders/Ghc.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Builders/Ghc.hs b/hadrian/src/Settings/Builders/Ghc.hs
index 1a05681a35..c3dad6d4d7 100644
--- a/hadrian/src/Settings/Builders/Ghc.hs
+++ b/hadrian/src/Settings/Builders/Ghc.hs
@@ -124,8 +124,9 @@ ghcLinkArgs = builder (Ghc LinkHs) ? do
-- are not actually bundled with the rts. Perhaps ffi should be part of
-- rts's extra libraries instead of extra bundled libraries in that
-- case. Care should be take as to not break the make build.
- rtsFfiArg = package rts ? (not useSystemFfi && libffiName' `elem` libs) ? mconcat
+ rtsFfiArg = package rts ? not useSystemFfi ? mconcat
[ arg ("-L" ++ buildPath)
+ , arg ("-l" ++ libffiName')
]
-- This is the -rpath argument that is required for the bindist scenario