tce-load -i compiletc automake libtool-dev intltool ruby opencl-headers cd ocl-icd-2.2.12 ./bootstrap CC="gcc -flto -fuse-linker-plugin -mtune=generic -O2 -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -O2 -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local -disable-static --localstatedir=/var --sysconfdir=/etc [-Os fails] find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m 4.72s] sudo make install