mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-22 03:52:52 +00:00
27 lines
238 B
Bash
27 lines
238 B
Bash
#!/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
|
|
|