From 6cb6c7a4485885f0fa3cd6e7c2439164837ae8a6 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 20 Jul 2020 20:48:22 +0200 Subject: [PATCH] Install alpine bindists with --disable-ld-override --- lib/GHCup.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/GHCup.hs b/lib/GHCup.hs index 90bbe99..38313c3 100644 --- a/lib/GHCup.hs +++ b/lib/GHCup.hs @@ -137,13 +137,18 @@ installGHCBin bDls ver pfreq@(PlatformRequest {..}) = do lift $ $(logInfo) "Installing GHC (this may take a while)" lEM $ execLogged "./configure" False - ["--prefix=" <> toFilePath inst] + (["--prefix=" <> toFilePath inst] ++ alpineArgs) [rel|ghc-configure|] (Just path) Nothing lEM $ make ["install"] (Just path) pure () + alpineArgs + | ver >= [vver|8.2.2|] + , Linux Alpine <- _rPlatform = ["--disable-ld-override"] + | otherwise = [] + installCabalBin :: ( MonadMask m , MonadCatch m