[compiler-rt] r252547 - [CMake] Don't pass -fPIC when compiling the darwin builtins
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 9 15:48:58 PST 2015
Author: cbieneman
Date: Mon Nov 9 17:48:58 2015
New Revision: 252547
URL: http://llvm.org/viewvc/llvm-project?rev=252547&view=rev
Log:
[CMake] Don't pass -fPIC when compiling the darwin builtins
This change makes CMake match autoconf.
Modified:
compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
Modified: compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake?rev=252547&r1=252546&r2=252547&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake Mon Nov 9 17:48:58 2015
@@ -264,7 +264,7 @@ macro(darwin_add_builtin_libraries)
set(CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE} -O3)
endif()
- set(CMAKE_C_FLAGS "-fPIC -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer")
+ set(CMAKE_C_FLAGS "-fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer")
set(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS})
set(CMAKE_ASM_FLAGS ${CMAKE_C_FLAGS})
More information about the llvm-commits
mailing list