tce-load -i compiletc libpng-dev harfbuzz-dev cd freetype-2.8.1 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) In file included from /usr/src/freetype-2.8/src/autofit/autofit.c:35:0: /usr/src/freetype-2.8/src/autofit/afscript.h:35:11: error: 'HB_SCRIPT_ADLAM' undeclared here (not in a function) HB_SCRIPT_ADLAM, ^ /usr/src/freetype-2.8/src/autofit/afshaper.c:89:38: note: in definition of macro 'SCRIPT' #define SCRIPT( s, S, d, h, H, ss ) h, ^ /usr/src/freetype-2.8/src/autofit/afscript.h:278:11: error: 'HB_SCRIPT_OSAGE' undeclared here (not in a function) HB_SCRIPT_OSAGE,