From 5f6b5f845d092c2d135124347f6e7bffc0acf6c1 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 25 Jul 2022 17:48:55 +0800 Subject: [PATCH] Add --disable-ld-override for darwin bindists Fixes #391 --- lib/GHCup/GHC.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/GHCup/GHC.hs b/lib/GHCup/GHC.hs index aa1aff5..61481d6 100644 --- a/lib/GHCup/GHC.hs +++ b/lib/GHCup/GHC.hs @@ -301,8 +301,9 @@ installUnpackedGHC path inst ver forceInstall addConfArgs | otherwise = do PlatformRequest {..} <- lift getPlatformReq - let alpineArgs - | ver >= [vver|8.2.2|], Linux Alpine <- _rPlatform + let ldOverride + | ver >= [vver|8.2.2|] + , _rPlatform `elem` [Linux Alpine, Darwin] = ["--disable-ld-override"] | otherwise = [] @@ -310,7 +311,7 @@ installUnpackedGHC path inst ver forceInstall addConfArgs lift $ logInfo "Installing GHC (this may take a while)" lEM $ execLogged "sh" ("./configure" : ("--prefix=" <> fromInstallDir inst) - : (alpineArgs <> (T.unpack <$> addConfArgs)) + : (ldOverride <> (T.unpack <$> addConfArgs)) ) (Just $ fromGHCupPath path) "ghc-configure"