mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.6 - Build zlib
This commit is contained in:
parent
1ab0f738be
commit
cdf02897b2
2 changed files with 40 additions and 0 deletions
29
scripts/chapter8/8.6-zlib.sh
Normal file
29
scripts/chapter8/8.6-zlib.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf zlib-1.2.12.tar.xz
|
||||
cd zlib-1.2.12
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
|
||||
rm -fv /usr/lib/libz.a
|
||||
|
||||
cd /sources
|
||||
rm -rf zlib-1.2.12
|
||||
|
|
@ -606,4 +606,15 @@ then
|
|||
stop_script "chapter8/8.5-glibc.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.6
|
||||
# ===========
|
||||
echo "Building zlib"
|
||||
su -c "bash $SCRIPT/chapter8/8.6-zlib.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.6-zlib.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue