From 58060d5eff074e62d595864d9548a271a1fd143f Mon Sep 17 00:00:00 2001 From: Cheng Shao <terrorjack@type.dance> Date: Sat, 7 Sep 2024 09:04:16 +0000 Subject: [PATCH] hadrian: re-enable PIC for gmp on wasm This commit re-enables --with-pic=yes configuration option of gmp when building for wasm, given we're about to include support for shared libraries, TH and ghci. (cherry picked from commit 775410fdfc5d6faf287eecdaae170af9f8a59bb9) --- hadrian/src/Settings/Builders/Configure.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hadrian/src/Settings/Builders/Configure.hs b/hadrian/src/Settings/Builders/Configure.hs index f60eebef37b..2e4a861f375 100644 --- a/hadrian/src/Settings/Builders/Configure.hs +++ b/hadrian/src/Settings/Builders/Configure.hs @@ -28,10 +28,7 @@ configureBuilderArgs = do -- more detailed explanation of this configure -- option. <> [ "--enable-alloca=malloc-notreentrant" | targetArch == "wasm32" ] - -- Enable PIC unless target is wasm32, in which - -- case we don't want libgmp.a to be bloated due - -- to PIC overhead. - <> [ "--with-pic=yes" | targetArch /= "wasm32" ] + <> [ "--with-pic=yes" ] , builder (Configure libffiPath) ? do top <- expr topDirectory -- GitLab