Add 8.21 - Build MPC

This commit is contained in:
Aditya 2023-01-11 11:37:12 +05:30
parent a1621fe87b
commit 5ec63bbd7d
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,32 @@
#!/bin/bash
cd /sources
tar xf mpc-1.2.1.tar.gz
cd mpc-1.2.1
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/mpc-1.2.1
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make hmtl
make check
make install
make install-html
cd /sources
rm -rf mpc-1.2.1

View file

@ -786,3 +786,15 @@ then
stop_script "chapter8/8.20-mpfr.sh"
fi
# Chapter 8.21
# ============
echo "Building MPC"
su -c "bash $SCRIPT/chapter8/8.21-mpc.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.21-mpc.sh"
fi