summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-09-17 23:54:00 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-09-17 23:54:00 +0000
commitf7d7347fc6e1312896f61f428e3ebf7559d09d72 (patch)
tree26e135ec10d2269531ec88b501637c7e0aa7197c
parent489397f92e2f1e7767bac0d41eacaa99a576516a (diff)
downloadmpfr-with-mini-gmp.tar.gz
[doc/mini-gmp] Update.with-mini-gmp
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/with-mini-gmp@13213 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--doc/mini-gmp17
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.