summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2020-07-08 05:29:41 +0000
committerMoritz Angermann <moritz.angermann@gmail.com>2020-07-08 21:32:44 -0400
commite54283931d4586e5001c8bb99ea90cdbc82e5746 (patch)
tree1a8ceb7071bb79f2925384f6884f612e6b29ef81
parent3033e0e4940e6ecc43f478f1dcfbd0c3cb1e3ef8 (diff)
downloadhaskell-wip/angerman/fix-int-gmp.tar.gz
fix gmp selectionwip/angerman/fix-int-gmp
-rw-r--r--libraries/ghc-bignum/gmp/ghc.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/ghc-bignum/gmp/ghc.mk b/libraries/ghc-bignum/gmp/ghc.mk
index fe8ba7c171..5f04e22b1d 100644
--- a/libraries/ghc-bignum/gmp/ghc.mk
+++ b/libraries/ghc-bignum/gmp/ghc.mk
@@ -77,11 +77,13 @@ endif
endif
UseIntreeGmp = NO
+ifeq "$(GMP_ENABLED)" "YES"
ifneq "$(HaveLibGmp)" "YES"
ifneq "$(HaveFrameworkGMP)" "YES"
UseIntreeGmp = YES
endif
endif
+endif
# gmp_wrappers.c includes "ghc-gmp.h"
libraries/ghc-bignum/cbits/gmp_wrappers.c: libraries/ghc-bignum/include/ghc-gmp.h