ndk-build for aarch64 (arm64)

477 views
Skip to first unread message

Bjoern D. Rasmussen

unread,
May 14, 2015, 10:56:53 AM5/14/15
to andro...@googlegroups.com
Hi

I'm trying to compile my project for arm64 but when I invoke ndk-build it automatically invokes the "arm-linux-androideabi" toolchain instead of "aarch64-linux-android".

In my Application.mk I've specified:
APP_STL := gnustl_static
APP_ABI := arm64-v8a

In the past my project has compiled fine when the Application.mk file was for armeabi-v7a:

APP_STL := gnustl_static
APP_ABI := armeabi-v7a

I'm working with a toolchain which I've created like this:
$ make-standalone-toolchain.sh --toolchain=aarch64-linux-android-4.9 --platform=android-21 --install-dir=toolchain-aarch64-linux-android-4.9 --arch=arm64

When I specify APP_ABI to "arm64-v8a" shouldn't the compiler and linker automatically point to prefix "aarch64-linux-android" instead of "arm-linux-androideabi"? Is there a way to override it?

-- Bjoern
Reply all
Reply to author
Forward
0 new messages