Details on this package are located in Section 10.12.2, “Contents of GMP.”
GMP is a library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers.
This package and the next two - MPFR and MPC - will be installed
into /cross-tools
because GCC
requires them to build.
If you are building with a host which has 32-bit user-space with a 64-bit capable CPU, cross-tools GMP will attempt to link with 64-bit libraries. Add the following variable during configure to force GMP's ABI: ./configure ABI=32
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.
Compile the package:
make
Install the package:
make install
Details on this package are located in Section 10.12.2, “Contents of GMP.”