aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/libcap.sh
blob: 41ff39cfaf1f4999ebb71fd3c9527ed74ecd5760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

sed -i '/install -m.*STA/d' libcap/Makefile

make prefix=/usr lib=lib

make prefix=/usr lib=lib -j1 install
for libname in cap psx; do
    mv -v /usr/lib/lib"${libname}".so.* /lib
    ln -sfv ../../lib/lib"${libname}".so.2 /usr/lib/lib"${libname}".so
    chmod -v 755 /lib/lib"${libname}".so.2.48
done