mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2025-02-05 17:00:04 +00:00
Add 8.20 - Build MPFR
This commit is contained in:
parent
37a70050c0
commit
a1621fe87b
2 changed files with 45 additions and 0 deletions
33
scripts/chapter8/8.20-mpfr.sh
Normal file
33
scripts/chapter8/8.20-mpfr.sh
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
tar xf mpfr-4.1.0.tar.xz
|
||||||
|
cd mpfr-4.1.0
|
||||||
|
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--disable-static \
|
||||||
|
--enable-thread-safe \
|
||||||
|
--docdir=/usr/share/doc/mpfr-4.1.0
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make -j5
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make html
|
||||||
|
|
||||||
|
make check
|
||||||
|
|
||||||
|
make install
|
||||||
|
make install-html
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
rm -rf mpfr-4.1.0
|
||||||
|
|
|
@ -774,3 +774,15 @@ then
|
||||||
stop_script "chapter8/8.19-gmp.sh"
|
stop_script "chapter8/8.19-gmp.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Chapter 8.20
|
||||||
|
# ============
|
||||||
|
echo "Building MPFR"
|
||||||
|
su -c "bash $SCRIPT/chapter8/8.20-mpfr.sh"
|
||||||
|
|
||||||
|
# Exit on error
|
||||||
|
check_exit_code
|
||||||
|
if [ $exit_status -ne 0 ]
|
||||||
|
then
|
||||||
|
stop_script "chapter8/8.20-mpfr.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue