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 \

The meaning of the new configure option:


This tells GMP to enable C++ support.


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

Compile the package:


Install the package:

make install

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