summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-02-07 13:39:31 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-09 02:56:26 -0500
commit414e2f626321f8eba8b2d5cc38dcc1a528351d83 (patch)
treeab63900dc6c7b285944ae2c3144970e3a6e428ca /hadrian
parentb2e18e26c34424ab814453a73404429cdf1a4d4a (diff)
downloadhaskell-414e2f626321f8eba8b2d5cc38dcc1a528351d83.tar.gz
Force -fPIC for intree GMP (fix #17799)
Configure intree GMP with `--with-pic` instead of patching it. Moreover the correct patching was only done for x86_64/darwin (see #17799).
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/src/Settings/Builders/Configure.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/hadrian/src/Settings/Builders/Configure.hs b/hadrian/src/Settings/Builders/Configure.hs
index 427d5da6f6..498aa6d158 100644
--- a/hadrian/src/Settings/Builders/Configure.hs
+++ b/hadrian/src/Settings/Builders/Configure.hs
@@ -13,6 +13,7 @@ configureBuilderArgs = do
hostPlatform <- getSetting HostPlatform
buildPlatform <- getSetting BuildPlatform
pure [ "--enable-shared=no"
+ , "--with-pic=yes"
, "--host=" ++ hostPlatform
, "--build=" ++ buildPlatform ]