summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Android/abi-armeabi-v6-GNU.cmake')
-rw-r--r--Modules/Platform/Android/abi-armeabi-v6-GNU.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake b/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake
index d621e72..7492de0 100644
--- a/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake
+++ b/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake
@@ -1,2 +1,17 @@
# <ndk>/build/core/toolchains/arm-linux-androideabi-4.9/setup.mk
+string(APPEND _ANDROID_ABI_INIT_CFLAGS
+ " -march=armv6"
+ )
+
+if(CMAKE_ANDROID_ARM_MODE)
+ string(APPEND _ANDROID_ABI_INIT_CFLAGS " -marm")
+else()
+ string(APPEND _ANDROID_ABI_INIT_CFLAGS " -mthumb")
+endif()
+
+string(APPEND _ANDROID_ABI_INIT_CFLAGS
+ " -mfloat-abi=softfp"
+ " -fpic"
+ )
+
include(Platform/Android/abi-common-GNU)