mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 11:52:52 +00:00
Add 6.12 - Build make
This commit is contained in:
parent
5d97b5afae
commit
2efa0dd6ae
2 changed files with 42 additions and 0 deletions
29
scripts/chapter6/6.12-make.sh
Normal file
29
scripts/chapter6/6.12-make.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd $LFS/sources
|
||||
tar xf make-4.3.tar.gz
|
||||
cd make-4.3
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--without-guile \
|
||||
--host=$LFS_TGT \
|
||||
--build=$(build-aux/config.guess)
|
||||
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make DESTDIR=$LFS install
|
||||
|
||||
cd $LFS/sources
|
||||
rm -rf make-4.3
|
||||
|
|
@ -311,3 +311,16 @@ then
|
|||
stop_script "chapter6/6.11-gzip.sh"
|
||||
fi
|
||||
|
||||
# Chapter 6.12
|
||||
# ============
|
||||
echo "Building make"
|
||||
su - lfs -c "bash $PWD/chapter6/6.12-make.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter6/6.12-make.sh"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue