tce-load -i compiletc meson Xorg-7.7-3d-dev pixman-dev libepoxy-dev libxcvt-dev font-util

wget https://www.x.org/pub/individual/xserver/xorg-server-21.1.3.tar.xz

cd xorg-server-21.1.3

mkdir build
cd build

CC="gcc -flto -mtune=generic -Os -pipe -fcommon" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti -fcommon" meson --prefix=/usr/local --sysconfdir=/etc --libexecdir=/usr/local/lib/xorg --buildtype=plain -Dsuid_wrapper=true -Dxkb_output_dir=/var/lib/xkb -Ddefault_font_path=/usr/local/lib/X11/fonts/misc,/usr/local/lib/X11/fonts/TTF,/usr/local/lib/X11/fonts/OTF,/usr/local/lib/X11/fonts/Type1,/usr/local/lib/X11/fonts/100pdi,/usr/local/lib/X11/fonts/75dpi -Dsha1=libcrypto -Dsecure-rpc=false -Dlog_dir=/var/log -Dsystemd_logind=false ../

find . -name build.ninja -type f -exec sed -i 's/-Werror=array-bounds//g' {} \;

ninja [2m 21.61s]
sudo ninja install

mkdir -pv /etc/X11/xorg.conf.d &&
cat >> /etc/sysconfig/createfiles << "EOF"
/tmp/.ICE-unix dir 1777 root root
/tmp/.X11-unix dir 1777 root root
EOF

xserver 21.1.3

  User defined options
    buildtype        : plain
    libexecdir       : /usr/local/lib/xorg
    prefix           : /usr/local
    sysconfdir       : /etc
    default_font_path: /usr/local/lib/X11/fonts/misc,/usr/local/lib/X11/fonts/TTF,/usr/local/lib/X11/fonts/OTF,/usr/local/lib/X11/fonts/Type1,/usr/local/lib/X11/fonts/100pdi,/usr/local/lib/X11/fonts/75dpi
    log_dir          : /var/log
    secure-rpc       : false
    sha1             : libcrypto
    suid_wrapper     : true
    systemd_logind   : false
    xkb_output_dir   : /var/lib/xkb

[  5451.254] (WW) The directory "/usr/local/lib/X11/fonts/OTF" does not exist.
[  5451.254] 	Entry deleted from font path.
[  5451.254] (WW) The directory "/usr/local/lib/X11/fonts/100pdi" does not exist.
[  5451.254] 	Entry deleted from font path.
[  5451.254] (==) FontPath set to:
	/usr/local/lib/X11/fonts/misc,
	/usr/local/lib/X11/fonts/TTF,
	/usr/local/lib/X11/fonts/Type1,
	/usr/local/lib/X11/fonts/75dpi