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.

llvm-svn: 355756
This commit is contained in:
Eric Fiselier 2019-03-08 23:27:46 +00:00
parent 0e1586c4fb
commit 9dd9495a35

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)