If the toolchain file or cache does not set this, enable it automatically based on the Android API version. Versions 16 and above expect position independent code. Use the main `CMAKE_POSITION_INDEPENDENT_CODE` setting in favor of hard-coding `-fpic` or `-fPIC` in the compiler flags for each ABI. This allows CMake to use `-fpie` or `-fPIE` as needed when sources are meant for executables, and `-fpic` or `-fPIC` for other sources.
5 lines
169 B
CMake
5 lines
169 B
CMake
# <ndk>/build/core/toolchains/mipsel-linux-android-clang/setup.mk
|
|
set(_ANDROID_ABI_CLANG_TARGET "mipsel-none-linux-android")
|
|
|
|
include(Platform/Android/abi-common-Clang)
|