tce-load -i compiletc pipewire-dev wayland-protocols-dev nasm wget https://www.libsdl.org/release/SDL2-2.30.11.tar.gz cd SDL2-2.30.11 CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-static --disable-oss find . -name Makefile -type f -exec sed -i 's/-g -O3//g' {} \; make [2m 6.13s] sudo make install SDL2 Configure Summary: Building Shared Libraries Enabled modules : atomic audio video render events joystick haptic hidapi sensor power filesystem threads timers file misc locale loadso cpuinfo assembly Assembly Math : mmx sse sse2 sse3 Audio drivers : disk dummy alsa(dynamic) pipewire(dynamic) pulse(dynamic) Video drivers : dummy offscreen x11(dynamic) kmsdrm(dynamic) opengl opengl_es2 vulkan wayland(dynamic) X11 libraries : xcursor xdbe xinput2 xinput2_multitouch xfixes xrandr xscrnsaver xshape Input drivers : linuxev linuxkd Enable virtual joystick APIs : YES Using libsamplerate : NO Using libudev : YES Using dbus : YES Using ime : YES Using ibus : NO Using fcitx : YES