summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-04-29 11:31:11 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2021-05-03 22:19:36 -0400
commiteb3ae87ff46760eb28904cf934f883df97ee5beb (patch)
tree2fed471e3703918f0589381d42a5eef9b7016ec2
parent7146958a3cc0212b2c2c35917c10adde0aa57d30 (diff)
downloadhaskell-wip/angerman/fix-gmp-enabled.tar.gz
[gmp] respect GMP_ENABLEDwip/angerman/fix-gmp-enabled
-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