[CMake] Don't pass -fPIC when compiling the darwin builtins

This change makes CMake match autoconf.

llvm-svn: 252547
This commit is contained in:
Chris Bieneman 2015-11-09 23:48:58 +00:00
parent ec353d3fc6
commit a9437f5135
1 changed files with 1 additions and 1 deletions

View File

@ -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})