diff options
Diffstat (limited to 'chapter8/libcap.sh')
-rw-r--r-- | chapter8/libcap.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter8/libcap.sh b/chapter8/libcap.sh new file mode 100644 index 0000000..2925c8b --- /dev/null +++ b/chapter8/libcap.sh @@ -0,0 +1,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."${VERSION}" +done |