tce-load -i compiletc cmake nasm wget https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-2.1.2.tar.gz cd libjpeg-turbo-2.1.2 mkdir build cd build cmake -LAH -DCMAKE_C_FLAGS="-flto -mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS="-flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE -DENABLE_STATIC=FALSE -DCMAKE_INSTALL_DEFAULT_LIBDIR=lib ../ find . -name flags.make -type f -exec sed -i 's/-O3//g' {} \; find . -name link.txt -type f -exec sed -i 's/-O3//g' {} \; make [0m 30.76s] sudo rm /usr/local/lib/libjpeg.so* sudo make install