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:
Eric Fiselier
2019-03-08 23:27:46 +00:00
parent 7af39704ff
commit a23faa9455

View File

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