5.7. GMP-6.1.2

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

5.7.1. Installation of GMP

This package and the next two - MPFR and MPC - will be installed into /cross-tools because GCC requires them to build.

Prepare GMP for compilation:

./configure \
    --prefix=/cross-tools \
    --enable-cxx \
    --disable-static

The meaning of the new configure option:

--enable-cxx

This tells GMP to enable C++ support.

--disable-static

This tells the GMP package not to compile or install static libraries, which are not needed for the Cross-Tools

Compile the package:

make

Install the package:

make install

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