tce-load -i compiletc libpng-dev harfbuzz-dev bzip2-dev wget https://downloads.sourceforge.net/freetype/freetype-2.11.1.tar.xz cd freetype-2.11.1 sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" -i include/freetype/config/ftoption.h CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-static --enable-freetype-config [--with-harfbuzz=no pass1] [--with-bzip2=no] find . -name unix-cc.mk -type f -exec sed -i 's/-g -O2//g' {} \; make [0m 21.17s] sudo make install Library configuration: [pass 1] external zlib: yes (pkg-config) bzip2: yes (autoconf test) libpng: yes (pkg-config) harfbuzz: no brotli: no pthread: yes Library configuration: [pass 2] external zlib: yes (pkg-config) bzip2: yes (autoconf test) libpng: yes (pkg-config) harfbuzz: yes (pkg-config) brotli: no pthread: yes Library configuration: external zlib: yes (pkg-config) bzip2: yes (autoconf test) libpng: yes (pkg-config) harfbuzz: yes (pkg-config)