tce-load -i curl-dev libarchive-dev

cd cmake-2.8.12.1

patch -Np1 -i ../cmake-2.8.12.1-freetype-1.patch

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./bootstrap --prefix=/usr/local --system-libs

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

make
sudo make install

