r268642 - [CMake][Apple-stage2] Don't link with -fno-pie
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Thu May 5 09:31:29 PDT 2016
Author: cbieneman
Date: Thu May 5 11:31:28 2016
New Revision: 268642
URL: http://llvm.org/viewvc/llvm-project?rev=268642&view=rev
Log:
[CMake][Apple-stage2] Don't link with -fno-pie
On Darwin the default is to build PIC and link PIE. We shouldn't need to override that in the Apple Clang distributions.
Modified:
cfe/trunk/cmake/caches/Apple-stage2.cmake
Modified: cfe/trunk/cmake/caches/Apple-stage2.cmake
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/Apple-stage2.cmake?rev=268642&r1=268641&r2=268642&view=diff
==============================================================================
--- cfe/trunk/cmake/caches/Apple-stage2.cmake (original)
+++ cfe/trunk/cmake/caches/Apple-stage2.cmake Thu May 5 11:31:28 2016
@@ -28,7 +28,6 @@ set(COMPILER_RT_INCLUDE_TESTS OFF CACHE
set(LLVM_ENABLE_LTO ON CACHE BOOL "")
set(CMAKE_C_FLAGS "-fno-stack-protector -fno-common -Wno-profile-instr-unprofiled" CACHE STRING "")
set(CMAKE_CXX_FLAGS "-fno-stack-protector -fno-common -Wno-profile-instr-unprofiled" CACHE STRING "")
-set(CMAKE_EXE_LINKER_FLAGS "-fno-pie" CACHE STRING "")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "")
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
More information about the cfe-commits
mailing list