tce-load -i compiletc wget ftp://sourceware.org/pub/libffi/libffi-3.3.tar.gz cd libffi-3.3 CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -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.45s] sudo make install