mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.19 - Build gmp
This commit is contained in:
parent
4e305ab825
commit
37a70050c0
2 changed files with 46 additions and 0 deletions
35
scripts/chapter8/8.19-gmp.sh
Normal file
35
scripts/chapter8/8.19-gmp.sh
Normal file
|
@ -0,0 +1,35 @@
|
|||
#!/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
|
||||
|
|
@ -762,4 +762,15 @@ then
|
|||
stop_script "chapter8/8.18-binutils.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.19
|
||||
# ============
|
||||
echo "Building GMP"
|
||||
su -c "bash $SCRIPT/chapter8/8.19-gmp.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.19-gmp.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue