Skip to content

Commit 67221ed

Browse files
committed
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.
1 parent 5f70f25 commit 67221ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/LTO/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ add_llvm_component_library(LLVMLTO
1313
intrinsics_gen
1414
llvm_vcsrevision_h
1515

16+
LINK_LIBS
17+
${LLVM_PTHREAD_LIB}
18+
1619
LINK_COMPONENTS
1720
AggressiveInstCombine
1821
Analysis

0 commit comments

Comments
 (0)