lfs-scripts/scripts/chapter8/8.19-gmp.sh

36 lines
452 B
Bash
Raw Normal View History

2023-01-11 05:53:44 +00:00
#!/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