Skip to content

Commit dd31a77

Browse files
committed
win32: link against ws2_32 on MinGW to find setsockopt and WSA* symbols
1 parent 8063ed2 commit dd31a77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/trusted/debug_stub/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ else()
2626
endif()
2727

2828
add_library(debug_stub STATIC ${DEBUG_INPUTS})
29+
30+
if (WIN32 AND NOT MSVC)
31+
target_link_libraries(debug_stub ws2_32)
32+
endif()

0 commit comments

Comments
 (0)