5.8. MPFR-3.1.5

The MPFR library is a C library for multiple-precision floating-point computations with correct rounding.

5.8.1. Installation of MPFR

Apply a patch with upstream fixes:

patch -Np1 -i ../mpfr-3.1.5-fixes-1.patch

Prepare MPFR for compilation:

LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
./configure \
    --prefix=/cross-tools \
    --disable-static \

The meaning of the new configure options:


This tells configure to search in /cross-tools for libraries.


This tells configure where to find GMP.

Compile the package:


Install the package:

make install

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