aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/zlib.sh
blob: d807c7e1cd1eaf0170faabf5ad1b08cb43142acc (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
set -e

./configure --prefix=/usr
make
make -j1 install

mv -v /usr/lib/libz.so.* /lib
ln -sfv ../../lib/"$(readlink /usr/lib/libz.so)" /usr/lib/libz.so
rm -fv /usr/lib/libz.a