How is TARGET_ARCH_ABI set in Android.mk

admin

Administrator
Staff member
I am trying to build my native application using ndk-build. Suppose I followed this guide to create my Android project:

<a href="https://rathodpratik.wordpress.com/2013/03/24/build-cc-executables-for-android-using-ndk/" rel="noreferrer">https://rathodpratik.wordpress.com/2013/03/24/build-cc-executables-for-android-using-ndk/</a>

When I try to print out my TARGET_ARCH_ABI, I always get armeabi. Even if I explicitly set

Code:
  TARGET_ARCH_ABI := armeabi-v7a

The application always builds into the libs/armeabi directory and when I check the elf header, it does in fact show that it has built for ARM.

How can I get it to build for armeabi-v7a?