From f7d7347fc6e1312896f61f428e3ebf7559d09d72 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 17 Sep 2018 23:54:00 +0000 Subject: [doc/mini-gmp] Update. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/with-mini-gmp@13213 280ebfd0-de03-0410-8827-d642c229c3f4 --- doc/mini-gmp | 17 ++++++++++++++--- 1 file 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. -- cgit v1.2.1