mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-14 08:59:45 +00:00
29 lines
254 B
Bash
29 lines
254 B
Bash
#!/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
|
|
|