[llvm] r201654 - Build PIE binaries when cross-compiling to Android.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Wed Feb 19 01:51:22 PST 2014
Author: eugenis
Date: Wed Feb 19 03:51:22 2014
New Revision: 201654
URL: http://llvm.org/viewvc/llvm-project?rev=201654&view=rev
Log:
Build PIE binaries when cross-compiling to Android.
This change also removes CMAKE_LINK_FLAGS setting that seems to be ignored by cmake.
Modified:
llvm/trunk/cmake/platforms/Android.cmake
Modified: llvm/trunk/cmake/platforms/Android.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/platforms/Android.cmake?rev=201654&r1=201653&r2=201654&view=diff
==============================================================================
--- llvm/trunk/cmake/platforms/Android.cmake (original)
+++ llvm/trunk/cmake/platforms/Android.cmake Wed Feb 19 03:51:22 2014
@@ -25,4 +25,5 @@ SET(ANDROID "1" CACHE STRING "ANDROID" F
SET(ANDROID_COMMON_FLAGS "-target arm-linux-androideabi --sysroot=${LLVM_ANDROID_TOOLCHAIN_DIR}/sysroot -B${LLVM_ANDROID_TOOLCHAIN_DIR}")
SET(CMAKE_C_FLAGS "${ANDROID_COMMON_FLAGS}" CACHE STRING "toolchain_cflags" FORCE)
SET(CMAKE_CXX_FLAGS "${ANDROID_COMMON_FLAGS}" CACHE STRING "toolchain_cxxflags" FORCE)
-SET(CMAKE_LINK_FLAGS "${ANDROID_COMMON_FLAGS}" CACHE STRING "toolchain_linkflags" FORCE)
+SET(CMAKE_EXE_LINKER_FLAGS "-pie" CACHE STRING "toolchain_exelinkflags" FORCE)
+
More information about the llvm-commits
mailing list