Skip to content

Commit a813610

Browse files
authored
Merge pull request #32176 from 3405691582/Port_OpenBSD_RequiresLinkPthread
[stdlib][cmake] OpenBSD target requires -lpthread.
2 parents 66311e1 + 9a93b61 commit a813610

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ function(_add_target_variant_link_flags)
351351
list(APPEND link_libraries "pthread" "dl")
352352
elseif("${LFLAGS_SDK}" STREQUAL "FREEBSD")
353353
list(APPEND link_libraries "pthread")
354+
elseif("${LFLAGS_SDK}" STREQUAL "OPENBSD")
355+
list(APPEND link_libraries "pthread")
354356
elseif("${LFLAGS_SDK}" STREQUAL "CYGWIN")
355357
# No extra libraries required.
356358
elseif("${LFLAGS_SDK}" STREQUAL "WINDOWS")

0 commit comments

Comments
 (0)