mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.21 - Build MPC
This commit is contained in:
parent
a1621fe87b
commit
5ec63bbd7d
2 changed files with 44 additions and 0 deletions
32
scripts/chapter8/8.21-mpc.sh
Normal file
32
scripts/chapter8/8.21-mpc.sh
Normal 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
|
||||||
|
|
|
@ -786,3 +786,15 @@ then
|
||||||
stop_script "chapter8/8.20-mpfr.sh"
|
stop_script "chapter8/8.20-mpfr.sh"
|
||||||
fi
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue