tce-load -i xorg-macros automake libtool-dev udev-dev cd libdrm-2.4.59 sed -e "/pthread-stubs/d" -i configure.ac autoreconf -fiv CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --sysconfdir=/etc --enable-udev find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make sudo make install libdrm 2.4.59 will be compiled with: libkms yes Intel API yes vmwgfx API yes Radeon API yes Nouveau API yes OMAP API no EXYNOS API no Freedreno API no (kgsl: no) Tegra API no