lfs-scripts/scripts/chapter8/8.19-gmp.sh
2023-01-11 11:23:44 +05:30

35 lines
452 B
Bash

#!/bin/bash
cd /sources
tar xf gmp-6.2.1.tar.xz
cd gmp-6.2.1
./configure --prefix=/usr \
--enable-cxx \
--disable-static \
--docdir=/usr/share/doc/gmp-6.2.1
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make html
make check 2>&1 | tee gmp-check-log
awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log
make install
make install-html
cd /sources
rm -rf gmp-6.2.1