[libcxx-commits] [libcxxabi] r357550 - [libc++abi] Actually set POSITION_INDEPENDENT_CODE when building shared library

Sam Clegg via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 2 17:28:09 PDT 2019


Author: sbc
Date: Tue Apr  2 17:28:09 2019
New Revision: 357550

URL: http://llvm.org/viewvc/llvm-project?rev=357550&view=rev
Log:
[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

Modified:
    libcxxabi/trunk/src/CMakeLists.txt

Modified: libcxxabi/trunk/src/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/CMakeLists.txt?rev=357550&r1=357549&r2=357550&view=diff
==============================================================================
--- libcxxabi/trunk/src/CMakeLists.txt (original)
+++ libcxxabi/trunk/src/CMakeLists.txt Tue Apr  2 17:28:09 2019
@@ -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>)
 




More information about the libcxx-commits mailing list