6.5. GMP-5.0.1

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

6.5.1. Installation of GMP

Prepare GMP for compilation:

CPPFLAGS=-fexceptions ./configure --build=${CLFS_HOST} \
    --prefix=${CLFS}/cross-tools

Compile the package:

make
[Note]

Note

Some versions of GCC (notably 4.3.2 which ships with Debian 5) will compile GMP without errors but in a subtly broken way. To ensure GMP is compiled and functioning correctly, optionally run the test suite:

make check

Install the package:

make install

6.5.2. Contents of GMP

Installed Libraries: libgmp.[a,so]

Short Descriptions

libgmp

Contains the definitions for GNU multiple precision functions.