Skip to content
Snippets Groups Projects
Commit 775410fd authored by Cheng Shao's avatar Cheng Shao
Browse files

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.
parent c247f2ee
No related branches found
No related tags found
No related merge requests found
......@@ -27,10 +27,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment