tce-load -i libpng-dev harfbuzz-dev cd freetype-2.6.5 sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg sed -r "s:.*(#.*SUBPIXEL_(RENDERING|HINTING 2)) .*:\1:g" -i include/freetype/config/ftoption.h CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-static --with-bzip2=no find . -name unix-cc.mk -type f -exec sed -i 's/-g -O2//g' {} \; make sudo make install Library configuration: external zlib: yes (pkg-config) bzip2: no libpng: yes (pkg-config) harfbuzz: yes (pkg-config)