How to build Mesa Turnip with -Dplatforms=android
but without cross-compilation
Small warning: This will "mess up" your Termux installation's
zlib.pc
file, but if you do other compilations with really similar settings to this one, you're probably going to need it again before you "fix" it by reinstalling Termux's officialzlib
anyway.
-
Install Termux
termux-setup-storage
pkg install git make clang binutils
git clone https://github.com/madler/zlib.git