summaryrefslogtreecommitdiff
path: root/Modules/Platform/Android/abi-x86_64-Clang.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-02 15:11:42 -0400
committerBrad King <brad.king@kitware.com>2016-08-23 12:51:58 -0400
commitb22294bc41c3ce62e561c7123c3f489a750dcb66 (patch)
treee4d69ae3c1d70330ca09ef9ea80fc0433cc8af2b /Modules/Platform/Android/abi-x86_64-Clang.cmake
parentb6a3102a9f8da05b50d4f4e96dd9f42ace37aa9b (diff)
downloadcmake-b22294bc41c3ce62e561c7123c3f489a750dcb66.tar.gz
Android: Populate compiler flags for current ABI
Initialize the CMAKE_{C,CXX}_FLAGS{,_<CONFIG>} cache entries with flags for each ABI as specified by NDK toolchain `setup.mk` files.
Diffstat (limited to 'Modules/Platform/Android/abi-x86_64-Clang.cmake')
-rw-r--r--Modules/Platform/Android/abi-x86_64-Clang.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Platform/Android/abi-x86_64-Clang.cmake b/Modules/Platform/Android/abi-x86_64-Clang.cmake
index dd386bfe43..c15042b29a 100644
--- a/Modules/Platform/Android/abi-x86_64-Clang.cmake
+++ b/Modules/Platform/Android/abi-x86_64-Clang.cmake
@@ -1,3 +1,8 @@
# <ndk>/build/core/toolchains/x86_64-clang/setup.mk
set(_ANDROID_ABI_CLANG_TARGET "x86_64-none-linux-android")
+
+string(APPEND _ANDROID_ABI_INIT_CFLAGS
+ " -fPIC"
+ )
+
include(Platform/Android/abi-common-Clang)