From e1b2e3b36f4e994079c7622b128ac9e9c5a45b92 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Wed, 18 Dec 2024 10:01:43 +0100 Subject: [PATCH] unwind-force-pthread-dl =================================================================== Gbp-Pq: Name unwind-force-pthread-dl.diff --- libunwind/CMakeLists.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt index 28d67b0fef..a4f9151058 100644 --- a/libunwind/CMakeLists.txt +++ b/libunwind/CMakeLists.txt @@ -311,14 +311,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 -- 2.30.2