From 94e9305d54b36cf8088789b49afd211a20518881 Mon Sep 17 00:00:00 2001 From: Rick V Date: Fri, 20 Sep 2019 18:53:31 -0500 Subject: [PATCH] fix static build --- cmake/win32.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/win32.cmake b/cmake/win32.cmake index ceb3123de..a875a189a 100644 --- a/cmake/win32.cmake +++ b/cmake/win32.cmake @@ -20,7 +20,7 @@ if(NOT MSVC_VERSION) # GNU ld sees fit to merge *all* the .ident sections in object files # to .r[o]data section one after the other! add_compile_options(-fno-ident -Wa,-mbig-obj) - link_libraries( -lshlwapi -ldbghelp ) + link_libraries( -lws2_32 -liphlpapi -lshlwapi -ldbghelp ) add_definitions(-DWINVER=0x0500 -D_WIN32_WINNT=0x0500) # Wait a minute, if we're not Microsoft C++, nor a Clang paired with Microsoft C++, # then the only possible option has to be GNU or a GNU-linked Clang!