tce-load -i compiletc Xorg-7.7-3d-dev wayland-protocols -> download http://tinycorelinux.net/9.x/x86_64/tcz/glib2-dev.tcz, unpack it and copy its *.la files into /usr/local/lib cd xorg-server-1.20.6 patch -Np1 -i ../xorg-server-1.19.3-add_prime_support-1.patch patch -Np1 -i ../xorg-server-1.20.3_sysmacros.patch 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 --libexecdir=/usr/local/lib/xorg --enable-glamor --enable-install-setuid --enable-suid-wrapper --disable-systemd-logind --with-xkb-output=/var/lib/xkb --with-fontrootdir=/usr/local/lib/X11/fonts --with-sha1=libcrypto --enable-kdrive --enable-xephyr --disable-xorg find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-Werror=array-bounds//g' {} \; make [8m 4.96s] sudo make install