mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.13 - Build bc
This commit is contained in:
parent
230b9ba210
commit
66f1a4050a
2 changed files with 39 additions and 0 deletions
27
scripts/chapter8/8.13-bc.sh
Normal file
27
scripts/chapter8/8.13-bc.sh
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
tar xf bc-6.0.1.tar.xz
|
||||||
|
cd bc-6.0.1
|
||||||
|
|
||||||
|
CC=gcc ./configure --prefix=/usr -G -O3 -r
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make -j5
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make check
|
||||||
|
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
rm -rf bc-6.0.1
|
||||||
|
|
|
@ -690,3 +690,15 @@ then
|
||||||
stop_script "chapter8/8.12-m4.sh"
|
stop_script "chapter8/8.12-m4.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Chapter 8.13
|
||||||
|
# ============
|
||||||
|
echo "Building bc"
|
||||||
|
su -c "bash $SCRIPT/chapter8/8.13-bc.sh"
|
||||||
|
|
||||||
|
# Exit on error
|
||||||
|
check_exit_code
|
||||||
|
if [ $exit_status -ne 0 ]
|
||||||
|
then
|
||||||
|
stop_script "chapter8/8.13-bc.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue