unwind-force-pthread-dl
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 16 Oct 2023 13:14:10 +0000 (13:14 +0000)
committerAndres Salomon <dilinger@debian.org>
Mon, 16 Oct 2023 13:14:10 +0000 (13:14 +0000)
===================================================================

Gbp-Pq: Name unwind-force-pthread-dl.diff

libunwind/CMakeLists.txt

index 5c547883f99275a8c78ae2025dfa4003fc68ce1d..07ed9a64353eed4ba0a72204157c2005ee1f1105 100644 (file)
@@ -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