build: don't add -fPIC on Windows
`-fPIC` doesn't make much sense for Windows, since Windows DLLs aren't compiled position independent and are instead relocated at runtime. Patch by Shoaib Meenai! git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@280413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -72,7 +72,9 @@ add_library_flags_if(LIBCXX_HAS_GCC_S_LIB gcc_s)
|
||||
add_library_flags_if(LIBCXX_HAVE_CXX_ATOMICS_WITH_LIB atomic)
|
||||
|
||||
# Setup flags.
|
||||
add_flags_if_supported(-fPIC)
|
||||
if (NOT WIN32)
|
||||
add_flags_if_supported(-fPIC)
|
||||
endif()
|
||||
add_link_flags_if_supported(-nodefaultlibs)
|
||||
|
||||
if ( APPLE AND (LIBCXX_CXX_ABI_LIBNAME STREQUAL "libcxxabi" OR
|
||||
|
||||
Reference in New Issue
Block a user