Add 6.11 - Build gzip

This commit is contained in:
Aditya 2023-01-09 14:16:32 +05:30
parent 9b79fb3b45
commit 5d97b5afae
2 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,25 @@
#!/bin/bash
cd $LFS/sources
tar xf gzip-1.12.tar.xz
cd gzip-1.12
./configure --prefix=/usr --host=$LFS_TGT
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 gzip-1.12

View file

@ -296,7 +296,18 @@ su - lfs -c "bash $PWD/chapter6/6.10-grep.sh"
check_exit_code
if [ $exit_status -ne 0 ]
then
exit 1
stop_script "chapter6/6.10-grep.sh"
fi
# Chapter 6.11
# ============
echo "Building gzip"
su - lfs -c "bash $PWD/chapter6/6.11-gzip.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter6/6.11-gzip.sh"
fi