From 6c6ea9d2b06c57b4c35b3d4bd6cc854a7b9a4590 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Sat, 2 Mar 2024 19:22:05 -0800 Subject: [PATCH] Fix BUILD_SHARED_LIBS=ON build for platforms which require explicit link of -lpthread (NFC) --- llvm/lib/DebugInfo/GSYM/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/DebugInfo/GSYM/CMakeLists.txt b/llvm/lib/DebugInfo/GSYM/CMakeLists.txt index 0c09c2bf998c..5447030e903d 100644 --- a/llvm/lib/DebugInfo/GSYM/CMakeLists.txt +++ b/llvm/lib/DebugInfo/GSYM/CMakeLists.txt @@ -18,6 +18,9 @@ add_llvm_component_library(LLVMDebugInfoGSYM DEPENDS LLVMMC + LINK_LIBS + ${LLVM_PTHREAD_LIB} + LINK_COMPONENTS MC Object