diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-06-08 16:17:48 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-06-08 16:17:48 +0000 |
commit | 8598753be64c0759b71c0a13d0235d6953ae8792 (patch) | |
tree | b195010d004b839a2803999f79a6ec35fc55ef26 /INSTALL | |
parent | 09850d3681b188abb7b9ae8ec0d77addd6642d56 (diff) | |
download | mpfr-8598753be64c0759b71c0a13d0235d6953ae8792.tar.gz |
[INSTALL] Update concerning CC/CFLAGS and the --with-gmp-build option.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6940 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -122,6 +122,11 @@ to build it with them. Just do this in step 1: where GMPBUILD is the GMP build directory. The needed header files are: gmp-impl.h, longlong.h and all the necessary headers to use them. +As gmp-impl.h and longlong.h are only in the GMP source directory, +you first need to copy these files to the build directory if it is +different (there may be other workarounds, such as setting $CPPFLAGS +to search the GMP source directory). + Warning: the library obtained in this way may use some internal GMP symbols, and thus dynamically linking your software with a different version of GMP might fail, even though it is declared as compatible @@ -162,12 +167,8 @@ build an optimized file "mparam.h" for your specific architecture. so that DIR will have a lower precedence. Also, this may not work if DIR is a system directory. ---with-gmp-build=DIR assumes that DIR contains the source of GMP and - enables the use of GMP internals. - Try to set CC/CFLAGS to GMP's ones. This is not - guaranteed to work as the configure script does - some compiler tests earlier, and the change may - be too late. +--with-gmp-build=DIR assumes that DIR contains the GMP build directory, + and enables the use of GMP internals (see above). Warning! This option and the group of options --with-gmp are mutually exclusive. @@ -183,6 +184,14 @@ build an optimized file "mparam.h" for your specific architecture. GCC, it may not currently support GCC's __thread storage class. +Note: By default, the configure script tries to set CC/CFLAGS to GMP's +ones (this feature needs GMP 4.3.0 or later, or the --with-gmp-build +option). However this is not guaranteed to work as the configure script +does some compiler tests earlier, and the change may be too late. Also, +the values obtained from GMP may be incorrect if GMP has been built +on a different machine. In such a case, the user may need to specify +CC/CFLAGS as explained below. + Run "./configure --help" to see the other options (autoconf default options). |