[libc++abi] Actually set POSITION_INDEPENDENT_CODE when building shared library

This is a bug fix from https://reviews.llvm.org/D60005.

Differential Revision: https://reviews.llvm.org/D60158

llvm-svn: 357550
This commit is contained in:
Sam Clegg 2019-04-03 00:28:09 +00:00
parent 03e7492876
commit 1e6c931844

View File

@ -176,7 +176,9 @@ else()
cxxabi_object_library(cxxabi_static_objects)
endif()
cxxabi_object_library(cxxabi_shared_objects POSITION_INDEPENDENT_CODE ON)
cxxabi_object_library(cxxabi_shared_objects)
set_target_properties(cxxabi_shared_objects PROPERTIES POSITION_INDEPENDENT_CODE ON)
set(cxxabi_static_sources $<TARGET_OBJECTS:cxxabi_static_objects>)
set(cxxabi_shared_sources $<TARGET_OBJECTS:cxxabi_shared_objects>)