[libcxx-commits] [PATCH] D60448: [CMake] Fix statically linking in libcxxabi if built separately
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 9 02:42:00 PDT 2019
mstorsjo created this revision.
mstorsjo added reviewers: ldionne, phosek.
Herald added subscribers: dexonsmith, mgorny.
Herald added a reviewer: EricWF.
In this case, CMake doesn't know about the c++abi target within the same CMake run.
This reverts this aspect back to how it was before SVN r357811.
Repository:
rCXX libc++
https://reviews.llvm.org/D60448
Files:
lib/CMakeLists.txt
Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -174,9 +174,9 @@
# Link against libc++abi
if (LIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY)
if (APPLE)
- target_link_libraries(cxx_shared PRIVATE "-Wl,-force_load" "$<TARGET_LINKER_FILE:${LIBCXX_CXX_STATIC_ABI_LIBRARY}>")
+ target_link_libraries(cxx_shared PRIVATE "-Wl,-force_load" "${LIBCXX_CXX_STATIC_ABI_LIBRARY}")
else()
- target_link_libraries(cxx_shared PRIVATE "-Wl,--whole-archive,-Bstatic" "$<TARGET_LINKER_FILE:${LIBCXX_CXX_STATIC_ABI_LIBRARY}>" "-Wl,-Bdynamic,--no-whole-archive")
+ target_link_libraries(cxx_shared PRIVATE "-Wl,--whole-archive,-Bstatic" "${LIBCXX_CXX_STATIC_ABI_LIBRARY}" "-Wl,-Bdynamic,--no-whole-archive")
endif()
else()
target_link_libraries(cxx_shared PRIVATE "${LIBCXX_CXX_SHARED_ABI_LIBRARY}")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60448.194273.patch
Type: text/x-patch
Size: 922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190409/a1b2295b/attachment.bin>
More information about the libcxx-commits
mailing list