Skip to content

Commit 9a93b61

Browse files
committed
[stdlib][cmake] OpenBSD target requires -lpthread.
Like FreeBSD, OpenBSD needs -lpthread for a target link. This is necessary to get the swift-reflection-test to link and build correctly.
1 parent 7498464 commit 9a93b61

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)