-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I cross compile for android using ndk? #402
Comments
All the build variables set in the configure script are overridable from
the command line. See the list in check_toolchain():
: ${PKG_CONFIG:=pkg-config}
: ${CC=gcc}
: ${LD=ld}
: ${OBJCOPY=objcopy}
: ${CLANG=clang}
: ${LLC=llc}
: ${M4=m4}
: ${EMACS=emacs}
: ${BPFTOOL=bpftool}
: ${READELF=readelf}
: ${ARCH_INCLUDES=}
: ${ARCH_NAME=}
They can be set in the environment when running configure, like:
CC=/my/cross/compiler/cc ./configure
No idea if anything else is needed for cross-compiling...
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not familiar with the configure script this project is using, how do I cross compile for android(arm) using ndk?
I want to statically compile my project which uses libxdp and run on AOSP.
The text was updated successfully, but these errors were encountered: