mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-22 16:37:40 +08:00
Revert "[libc++] Do not force building with -fPIC"
This reverts commit r355764. CMake does not turn -fPIC on for us by default. so this patch breaks standalone builds. The only reason it hasn't broken any bots is because LLVM turns on and specifies '-fPIC' for us. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@355756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -105,6 +105,10 @@ if (LIBCXXABI_USE_LLVM_UNWINDER)
|
||||
endif()
|
||||
|
||||
# Setup flags.
|
||||
if (NOT WIN32)
|
||||
add_flags_if_supported(-fPIC)
|
||||
endif()
|
||||
|
||||
add_link_flags_if_supported(-nodefaultlibs)
|
||||
|
||||
if (LIBCXX_TARGETING_MSVC)
|
||||
|
Reference in New Issue
Block a user