Details on this package are located in Section 10.10.2, “Contents of GMP.”
GMP is a library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers.
As with the Cross-Tools, we will compile GMP, MPFR, MPC, ISL, and
CLooG so that GCC can use them, though this time we will
cross-compile them into /tools
.
Prepare GMP for compilation:
CC_FOR_BUILD=gcc ./configure --prefix=/tools \ --build=${CLFS_HOST} --host=${CLFS_TARGET} \ --enable-cxx
The meaning of the new configure option:
CC_FOR_BUILD=gcc
Tells configure to use the host's gcc instead of our cross-compiler to build native tools it needs while compiling.
Compile the package:
make
Install the package:
make install
Details on this package are located in Section 10.10.2, “Contents of GMP.”