qLinux
… a distribution study


<< Prev
Binutils-2.37

Next >>
Mpfr-4.1.0


GMP-6.2.1

Reference: 8.19. GMP-6.2.1. First fix the build system:

patch -Np1 -i gmp-6.2.1-qlnx-20220103.patch

This package builds and installs the common way:

./configure --prefix=/qlnx \
            --enable-cxx \
            --disable-static \
            --docdir=/tmp \
            --infodir=/tmp

Fix the newly created file  libtool :

sed -i 's|/dev/null|/qlnx/dev/null|g' libtool
make

To run the testsuite prepare it (fix  /dev/null :

cd tests
for f in `find -name Makefile.in` ; do
  sed -i 's|/dev/null|/qlnx/dev/null|g' $f
done

The run the tests:

make check 2>&1 | tee gmp-check-log

Verify that all 197 test are ok:

awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log

Install gmp lib:

make install

The configure option  â€“includedir  doesn't work, thus copy the header file to the proper location:

mv -v /qlnx/include/* /qlnx/inc
rmdir /qlnx/include

Last correct the includedir variable in  /qlnx/lib/pkgconfig/gmp.pc  and  /qlnx/lib/pkgconfig/gmpxx.pc .


<< Prev
Binutils-2.37

Next >>
Mpfr-4.1.0