tce-load -i compiletc freetype-dev gobject-introspection-dev icu67-dev cairo-dev graphite-dev

wget https://github.com/harfbuzz/harfbuzz/releases/download/2.7.2/harfbuzz-2.7.2.tar.xz

cd harfbuzz-2.7.2

CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --enable-static --localstatedir=/var --with-gobject --with-graphite2

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

make [3m 20.59s]
make install

Build configuration:

Unicode callbacks (you want at least one):
        Builtin                 true
        Glib:                   true
        ICU:                    true

Font callbacks (the more the merrier):
        FreeType:               true

Tools used for command-line utilities:
        Cairo:                  true
        Fontconfig:             true

Additional shapers:
        Graphite2:              true

Platform shapers (not normally needed):
        CoreText:               false
        DirectWrite:            false
        GDI:                    false
        Uniscribe:              false

Other features:
        Documentation:          no
        GObject bindings:       true
        Introspection:          true