MPFR - Anonymous1157/cross-compilers GitHub Wiki
The order in which these libraries are built is important! MPFR depends on GMP and is depended on by MPC.
Extract the tarball somewhere and create a folder outside of the source directory.
tar xf path/to/mpfr-3.1.5.tar.xz
mkdir mpfr-build
Configure MPFR.
cd mpfr-build
../mpfr-3.1.5/configure --prefix="$HOME/.local/share/cross" --with-gmp="$HOME/.local/share/cross" --enable-shared --disable-static LDFLAGS="-Wl,-rpath=$HOME/.local/share/cross/lib"
Build and install MPFR.
make -j8
make install