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.
4 lines
106 B
CMake
4 lines
106 B
CMake
# <ndk>/build/core/toolchains/mipsel-linux-android-4.9/setup.mk
|
|
|
|
include(Platform/Android/abi-common-GNU)
|