[llvm] 1a4f52c - More fix BUILD_SHARED_LIBS=ON build for platforms which require explicit link of -lpthread (NFC)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 2 19:35:39 PST 2024
Author: Mehdi Amini
Date: 2024-03-02T19:34:56-08:00
New Revision: 1a4f52c84257a2a0083abe37368c526a2f8cd928
URL: https://github.com/llvm/llvm-project/commit/1a4f52c84257a2a0083abe37368c526a2f8cd928
DIFF: https://github.com/llvm/llvm-project/commit/1a4f52c84257a2a0083abe37368c526a2f8cd928.diff
LOG: More fix BUILD_SHARED_LIBS=ON build for platforms which require explicit link of -lpthread (NFC)
Some systems requires explictly providing -lpthread when linking, I don't
have such system so it is hard to find all the missing cases.
Added:
Modified:
llvm/lib/DWARFLinker/Classic/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/lib/DWARFLinker/Classic/CMakeLists.txt b/llvm/lib/DWARFLinker/Classic/CMakeLists.txt
index 4a3ac0d2220829..5d3b259e4a33a0 100644
--- a/llvm/lib/DWARFLinker/Classic/CMakeLists.txt
+++ b/llvm/lib/DWARFLinker/Classic/CMakeLists.txt
@@ -10,6 +10,9 @@ add_llvm_component_library(LLVMDWARFLinkerClassic
DEPENDS
intrinsics_gen
+ LINK_LIBS
+ ${LLVM_PTHREAD_LIB}
+
LINK_COMPONENTS
AsmPrinter
BinaryFormat
More information about the llvm-commits
mailing list