Skip to content

Instantly share code, notes, and snippets.

@tosiara
Last active October 21, 2022 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tosiara/04c8c1a9f4cea9c55341ec0c3cac6a22 to your computer and use it in GitHub Desktop.
Save tosiara/04c8c1a9f4cea9c55341ec0c3cac6a22 to your computer and use it in GitHub Desktop.
Cross compile wireguard-tools for Android
  1. Install NDK (side by side)
  2. 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
  1. cd wireguard-tools/src
  2. make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment