diff options
Diffstat (limited to 'doc/mini-gmp')
-rw-r--r-- | doc/mini-gmp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/doc/mini-gmp b/doc/mini-gmp index 12b31f581..8224d67fd 100644 --- a/doc/mini-gmp +++ b/doc/mini-gmp @@ -13,6 +13,16 @@ Testsuite summary for MPFR 4.0.0-dev # XPASS: 0 # ERROR: 0 +There are 2 ways to build MPFR against mini-gmp. + +A) With --with-mini-gmp: + + ./configure --with-mini-gmp=DIR [other configure options] + +"make" will build mini-gmp with the same compiler as for MPFR. + +B) With --enable-mini-gmp: + 1) extract the GMP tarball in say /tmp/gmp-6.1.2 go into /tmp/gmp-6.1.2/mini-gmp gcc -O2 -g -fPIC -c mini-gmp.c @@ -27,6 +37,7 @@ Testsuite summary for MPFR 4.0.0-dev 3) extract the MPFR tarball in say /tmp/mpfr ./configure --with-gmp=/tmp --enable-mini-gmp --disable-shared -Note: to use this version of the MPFR library, you need to define -the MPFR_USE_MINI_GMP macro before including mpfr.h (alternatively, -you can modify mpfr.h to define this macro at the beginning). +Note: In both cases, to use this version of the MPFR library, you need to +define the MPFR_USE_MINI_GMP macro before including mpfr.h (alternatively, +you can modify mpfr.h to define this macro at the beginning). But this will +currently not be usable as is if mini-gmp.h doesn't declare gmp_randstate_t. |