[libcxx-commits] [PATCH] D62090: [libcxx][libunwind] Support ELF dependent libraries feature on Linux
Petr Hosek via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon May 20 12:27:06 PDT 2019
phosek updated this revision to Diff 200343.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62090/new/
https://reviews.llvm.org/D62090
Files:
libcxx/include/__threading_support
libunwind/src/AddressSpace.hpp
Index: libunwind/src/AddressSpace.hpp
===================================================================
--- libunwind/src/AddressSpace.hpp
+++ libunwind/src/AddressSpace.hpp
@@ -27,6 +27,9 @@
#if _LIBUNWIND_USE_DLADDR
#include <dlfcn.h>
+#if defined(__clang__) && defined(__ELF__) && defined(__linux__)
+#pragma comment(lib, "dl")
+#endif
#endif
#ifdef __APPLE__
Index: libcxx/include/__threading_support
===================================================================
--- libcxx/include/__threading_support
+++ libcxx/include/__threading_support
@@ -25,6 +25,9 @@
#if defined(_LIBCPP_HAS_THREAD_API_PTHREAD)
# include <pthread.h>
# include <sched.h>
+#if defined(__clang__) && defined(__ELF__) && defined(__linux__)
+#pragma comment(lib, "pthread")
+#endif
#endif
_LIBCPP_PUSH_MACROS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62090.200343.patch
Type: text/x-patch
Size: 806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190520/f3df6507/attachment.bin>
More information about the libcxx-commits
mailing list