tce-load -i compiletc git automake libtool-dev intltool libtre-dev jdk8

git clone https://github.com/sleuthkit/scalpel

cd scalpel

./bootstrap

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe" ./configure --prefix=/usr/local --disable-static --localstatedir=/var

[-fno-exceptions -fno-rtti fails]

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

make [0m 9.10s]
sudo make install

