mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-22 01:59:25 +00:00
29 lines
984 B
Diff
29 lines
984 B
Diff
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/libunwind/CMakeLists.txt
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/libunwind/CMakeLists.txt
|
|
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/libunwind/CMakeLists.txt
|
|
@@ -277,14 +277,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
|