summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2018-12-05 20:46:21 -0800
committerBen Gamari <ben@well-typed.com>2019-01-23 14:07:28 -0500
commitefc95841503a78504c0aa00925fb22c4ec4627af (patch)
tree88ccd49a18f83f19418131e8cb31b635bb8cfddb /rules
parentdaff24bc74c1fed7efb1acde2d8f90dc9621a308 (diff)
downloadhaskell-efc95841503a78504c0aa00925fb22c4ec4627af.tar.gz
Hadrian: support in-tree GMP
Summary: This adds top-level configure flags '--with-intree-gmp' and '--with-framework-preferred', both of which are especially relevant on MacOS. Besides gaining two new flags, Hadrian also had to be taught what to do with the 'framework' in .cabal files. Test Plan: ./boot && ./configure --with-intree-gmp && ./hadrian/build.sh ./boot && ./configure --with-gmp-framework-preferred && ./hadrian/build.sh # on macos Reviewers: carter, snowleopard, alpmestan, hvr, goldfire, bgamari Subscribers: rwbarton, erikd GHC Trac Issues: #16001 Differential Revision: https://phabricator.haskell.org/D5417
Diffstat (limited to 'rules')
-rw-r--r--rules/build-package-data.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index 2f0d7c9f2a..af1ead8099 100644
--- a/rules/build-package-data.mk
+++ b/rules/build-package-data.mk
@@ -90,6 +90,14 @@ ifneq "$$(GMP_LIB_DIRS)" ""
$1_$2_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="$$(GMP_LIB_DIRS)"
endif
+ifeq "$$(GMP_PREFER_FRAMEWORK)" "YES"
+$1_$2_CONFIGURE_OPTS += --configure-option=--with-gmp-framework-preferred
+endif
+
+ifeq "$$(GMP_FORCE_INTREE)" "YES"
+$1_$2_CONFIGURE_OPTS += --configure-option=--with-intree-gmp
+endif
+
ifneq "$$(CURSES_LIB_DIRS)" ""
$1_$2_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="$$(CURSES_LIB_DIRS)"
endif