summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-05-21 13:06:43 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2021-05-21 13:06:43 +0100
commit3e262feaa39dc8154d2bbbbdda4352376744681f (patch)
tree9013c975fb8d340c1ce2e8628fad64a5a1c364c3
parent40a08ecb902664b3aaf1a223cda2dfd835321020 (diff)
downloadhaskell-wip/darwin-ci-fixes.tar.gz
Revert "hadrian: Don't always links against libffi"wip/darwin-ci-fixes
This reverts commit 673ff667c98eafc89e6746d1ac69d33b8330d755.
-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