aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/zlib.sh
blob: df670743f6c47089b545a15d54142442d6f375dd (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