Add 8.6 - Build zlib

This commit is contained in:
Aditya 2023-01-10 15:01:02 +05:30
parent 1ab0f738be
commit cdf02897b2
2 changed files with 40 additions and 0 deletions

View 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

View file

@ -606,4 +606,15 @@ then
stop_script "chapter8/8.5-glibc.sh" stop_script "chapter8/8.5-glibc.sh"
fi 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