tce-load -i xorg-proto fontcofig-dev libxcb-dev glibc_add_lib

cd libX11-1.6.3
cd ../libXext-1.3.3
cd ../libXt-1.1.5
cd ../libXaw-1.0.13
cd ../libXrender-0.9.9
cd ../libXfont-1.5.1
cd ../libXft-2.3.2
cd ../libXi-1.7.5
cd ../libXrandr-1.5.0
cd ../libXvMC-1.0.9
cd ../libXxf86vm-1.1.4
cd ../libpciaccess-0.13.4
cd ../libxkbfile-1.0.9
cd ../libxshmfence-1.2

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 --disable-static --localstatedir=/var --sysconfdir=/etc [libXt --with-appdefaultdir=/etc/X11/app-defaults] [libXfont --disable-devel-docs]

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

make
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