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

make &&
make prefix=/usr -j1 install &&

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