tce-load -i attr-dev linux-pam-dev perl5

cd libcap-2.24

sed -i 's:LIBDIR:PAM_&:g' pam_cap/Makefile
sed -i '/install.*STALIBNAME/ s/^/#/' libcap/Makefile

find . -name Make.Rules -type f -exec sed -i 's/-O2/ /g' {} \;

make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti"

sudo make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" prefix=/usr/local LIBDIR=/usr/local/lib SBINDIR=/usr/local/sbin PKGCONFIGDIR=/usr/local/lib/pkgconfig PAM_LIBDIR=/usr/local/lib RAISE_SETFCAP=no install

sudo chmod 755 /usr/local/lib/libcap.so

need to rum "make" in pam_cap?
