[PATCH] D60005: [libc++abi] Don't set POSITION_INDEPENDENT_CODE when building static library
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 29 15:08:04 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL357322: [libc++abi] Don't set POSITION_INDEPENDENT_CODE when building static library (authored by sbc, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D60005?vs=192882&id=192928#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60005/new/
https://reviews.llvm.org/D60005
Files:
libcxxabi/trunk/src/CMakeLists.txt
Index: libcxxabi/trunk/src/CMakeLists.txt
===================================================================
--- libcxxabi/trunk/src/CMakeLists.txt
+++ libcxxabi/trunk/src/CMakeLists.txt
@@ -153,9 +153,7 @@
CXX_STANDARD_REQUIRED
ON
COMPILE_FLAGS
- "${LIBCXXABI_COMPILE_FLAGS}"
- POSITION_INDEPENDENT_CODE
- ON)
+ "${LIBCXXABI_COMPILE_FLAGS}")
if(ARGS_DEFINES)
target_compile_definitions(${name} PRIVATE ${ARGS_DEFINES})
@@ -174,15 +172,14 @@
_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS
_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
FLAGS ${CXXABI_STATIC_OBJECTS_FLAGS})
- cxxabi_object_library(cxxabi_shared_objects)
- set(cxxabi_static_sources $<TARGET_OBJECTS:cxxabi_static_objects>)
- set(cxxabi_shared_sources $<TARGET_OBJECTS:cxxabi_shared_objects>)
else()
- cxxabi_object_library(cxxabi_objects)
- set(cxxabi_static_sources $<TARGET_OBJECTS:cxxabi_objects>)
- set(cxxabi_shared_sources $<TARGET_OBJECTS:cxxabi_objects>)
+ cxxabi_object_library(cxxabi_static_objects)
endif()
+cxxabi_object_library(cxxabi_shared_objects POSITION_INDEPENDENT_CODE ON)
+set(cxxabi_static_sources $<TARGET_OBJECTS:cxxabi_static_objects>)
+set(cxxabi_shared_sources $<TARGET_OBJECTS:cxxabi_shared_objects>)
+
# Build the shared library.
if (LIBCXXABI_ENABLE_SHARED)
add_library(cxxabi_shared SHARED ${cxxabi_shared_sources})
@@ -238,9 +235,7 @@
LINK_FLAGS
"${LIBCXXABI_LINK_FLAGS}"
OUTPUT_NAME
- "c++abi"
- POSITION_INDEPENDENT_CODE
- ON)
+ "c++abi")
list(APPEND LIBCXXABI_BUILD_TARGETS "cxxabi_static")
if (LIBCXXABI_INSTALL_STATIC_LIBRARY)
list(APPEND LIBCXXABI_INSTALL_TARGETS "cxxabi_static")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60005.192928.patch
Type: text/x-patch
Size: 2008 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190329/7cc71582/attachment.bin>
More information about the llvm-commits
mailing list