Skip to content

Commit 111438d

Browse files
authored
Merge pull request cpp-netlib#743 from anonimal/0.13-release
Build: exclude OpenBSD from dynlinker for static SSL
2 parents f17d305 + 81a5702 commit 111438d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libs/network/src/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ target_link_libraries(cppnetlib-client-connections ${Boost_LIBRARIES} ${CMAKE_TH
4646
if (OPENSSL_FOUND)
4747
target_link_libraries(cppnetlib-client-connections ${OPENSSL_LIBRARIES})
4848
if (CPP-NETLIB_STATIC_OPENSSL)
49-
if (NOT MSVC AND NOT MINGW AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") # dynlinker functions are built into libc on FreeBSD
49+
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
50+
set(BSD ON)
51+
endif()
52+
if (NOT MSVC AND NOT MINGW AND NOT BSD) # dynlinker functions are built into libc on BSD
5053
target_link_libraries(cppnetlib-client-connections "-ldl")
5154
endif()
5255
endif()

0 commit comments

Comments
 (0)