From: LLVM Packaging Team Date: Sat, 4 May 2024 05:27:41 +0000 (+0200) Subject: unwind-force-pthread-dl X-Git-Tag: archive/raspbian/1%16.0.6-27+rpi1~1^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a91ca77460deb14f56378e122fcbb3adc9a6eac8;p=llvm-toolchain-16.git unwind-force-pthread-dl =================================================================== Gbp-Pq: Name unwind-force-pthread-dl.diff --- diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt index 5c547883f9..07ed9a6435 100644 --- a/libunwind/CMakeLists.txt +++ b/libunwind/CMakeLists.txt @@ -308,14 +308,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