6.3. GMP-6.0.0

GMP is a library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers.

6.3.1. Installation of GMP

Prepare GMP for compilation:

CC_FOR_BUILD=gcc CC="${CC} \
    ${BUILD64}" CXX="${CXX} ${BUILD64}" ./configure --prefix=/tools \
    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --libdir=/tools/lib64 --enable-cxx

The meaning of the new configure option:

CC="${CC} ${BUILD64}"

Tells the compiler to use our 64-bit build flags.

Compile the package:

make

Install the package:

make install

Details on this package are located in Section 10.12.2, “Contents of GMP.”