From: LLVM Packaging Team Date: Sat, 4 Jan 2025 08:12:52 +0000 (+0100) Subject: unwind-force-pthread-dl X-Git-Tag: archive/raspbian/1%17.0.6-20+rpi1^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1bf5ddea5226b538449917cd11e81539b6d19c9a;p=llvm-toolchain-17.git unwind-force-pthread-dl =================================================================== Gbp-Pq: Name unwind-force-pthread-dl.diff --- diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt index bc2a820fe9..1aef0bd5dc 100644 --- a/libunwind/CMakeLists.txt +++ b/libunwind/CMakeLists.txt @@ -281,14 +281,17 @@ if (MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) endif() -if (C_SUPPORTS_COMMENT_LIB_PRAGMA) - if (LIBUNWIND_HAS_DL_LIB) +list(APPEND LIBUNWIND_LINK_FLAGS "-ldl") +list(APPEND LIBUNWIND_LINK_FLAGS "-lpthread") + +#if (C_SUPPORTS_COMMENT_LIB_PRAGMA) +# if (LIBUNWIND_HAS_DL_LIB) add_definitions(-D_LIBUNWIND_LINK_DL_LIB) - endif() - if (LIBUNWIND_HAS_PTHREAD_LIB) +# endif() +# if (LIBUNWIND_HAS_PTHREAD_LIB) add_definitions(-D_LIBUNWIND_LINK_PTHREAD_LIB) - endif() -endif() +# endif() +#endif() #=============================================================================== # Setup Source Code