tce-load -i compiletc

wget ftp://sourceware.org/pub/libffi/libffi-3.3.tar.gz

cd libffi-3.3

CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static

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

make [0m 1.31s]
sudo make install

