summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp/integer-gmp.cabal
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-02-26 16:18:20 -0600
committerAustin Seipp <austin@well-typed.com>2014-02-26 16:18:20 -0600
commit4775d0060a7027196f7c5dd521d5754080667a84 (patch)
treea197a5951489216f606fff2e594f2eafcc90e05c /libraries/integer-gmp/integer-gmp.cabal
parentbcd38ea7f97cc3a3ed192bc0666c816c027bd9fc (diff)
downloadhaskell-4775d0060a7027196f7c5dd521d5754080667a84.tar.gz
Fix GMP v4 compatibility.
We had started relying on GMP 5.x (for usage of mpz_powm_sec), but this is pretty painful on RHEL-esque targets, which still use GMP 4.x. In the mean time while we're still supporting this, it's easier to just fallback to mpz_powm when _sec is unavailable, and emit a WARNING for using the primitive. This also installs a header, HsIntegerGmp.h, which clients could use for a fallback. As a side note, this will probably also help Debian oldstable users who might have outdated GMP versions (which I believe is the cause for #8666.) Reviewed-by: Herbert Valerio Riedel <hvr@gnu.org> Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'libraries/integer-gmp/integer-gmp.cabal')
-rw-r--r--libraries/integer-gmp/integer-gmp.cabal3
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/integer-gmp/integer-gmp.cabal b/libraries/integer-gmp/integer-gmp.cabal
index 2473ccb0e1..817a854e72 100644
--- a/libraries/integer-gmp/integer-gmp.cabal
+++ b/libraries/integer-gmp/integer-gmp.cabal
@@ -35,6 +35,7 @@ extra-source-files:
gmp/config.mk.in
install-sh
integer-gmp.buildinfo.in
+ include/HsIntegerGmp.h.in
extra-tmp-files:
autom4te.cache
@@ -42,6 +43,7 @@ extra-tmp-files:
config.status
gmp/config.mk
integer-gmp.buildinfo
+ include/HsIntegerGmp.h
source-repository head
type: git
@@ -73,6 +75,7 @@ Library
GHC.Integer.Type
c-sources: cbits/cbits.c
+ include-dirs: include
build-depends: ghc-prim >= 0.3.1 && < 0.4