[llvm] e29cad6 - 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:36:29 PST 2024


Author: Mehdi Amini
Date: 2024-03-02T19:36:22-08:00
New Revision: e29cad6b3bb1f573ad5340771faa8a01cc05cb65

URL: https://github.com/llvm/llvm-project/commit/e29cad6b3bb1f573ad5340771faa8a01cc05cb65
DIFF: https://github.com/llvm/llvm-project/commit/e29cad6b3bb1f573ad5340771faa8a01cc05cb65.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/Parallel/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/DWARFLinker/Parallel/CMakeLists.txt b/llvm/lib/DWARFLinker/Parallel/CMakeLists.txt
index 209d971be062a2..1e7ff0703d135c 100644
--- a/llvm/lib/DWARFLinker/Parallel/CMakeLists.txt
+++ b/llvm/lib/DWARFLinker/Parallel/CMakeLists.txt
@@ -17,6 +17,9 @@ add_llvm_component_library(LLVMDWARFLinkerParallel
   DEPENDS
   intrinsics_gen
 
+  LINK_LIBS
+  ${LLVM_PTHREAD_LIB}
+
   LINK_COMPONENTS
   AsmPrinter
   BinaryFormat


        


More information about the llvm-commits mailing list