tce-load -i compiletc fontconfig-dev libxcb-dev perl5 xtrans gettext

https://www.x.org/pub/individual/lib/

cd libX11-1.7.3.1
cd ../libXt-1.2.1
cd ../libXpm-3.5.13
cd ../libXaw-1.0.14
cd ../libXfixes-6.0.0
cd ../libXfont2-2.0.5
cd ../libXft-2.3.4
cd ../libXi-1.8
cd ../libXres-1.2.1

[patch -Rp1 -i ../libXfont2-2.0.4.patch]

CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --sysconfdir=/etc [libICE LIBS="-pthread"] [libXt --with-appdefaultdir=/etc/X11/app-defaults] [libXfont2 --disable-devel-docs]

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

make [1m 0.37s]
make install

X11 will be built with the following settings:
 Loadable i18n module support:            no
 Loadable xcursor library support:        yes
 Threading support:                       yes
 Use Threads safe API:                    yes
 Threads stubs in libX11:                 no
 XCMS:                                    yes
 Internationalization support:            yes
 XF86BigFont support:                     yes
 XKB support:                             yes
 XLOCALEDIR environment variable support: yes
 Compose table cache enabled:             yes
 Functional specs building enabled:       yes
