- Install
NDK (side by side)
- Add NDK compiler to the PATH (select architecture accordingly, ex, x86_64):
export PATH=$PATH:/home/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin
export CC=x86_64-linux-android27-clang
cd wireguard-tools/src
make