From d425d8bf258d0cb2b6488b64247c482e78493bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=81nis=20Erdmanis?= Date: Sun, 13 Apr 2025 20:00:16 +0300 Subject: [PATCH] fix capitalization `ws2_32.lib` Windows and MacOS are both case-insensitive, and hence the issue of wrong capitalisation may not have surfaced. I am forming a recipe for cross-compilation for the Julia BinarBuilder environment, which uses Linux x86_64 as the host system. However, as it uses a sensitive filesystem, I hit a linking error that could only be fixed by changing the capitalization of `Ws2_32.lib` to lowercase. More on that can be found in the pull request: https://github.com/JuliaPackaging/Yggdrasil/pull/10950 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d45a76..b12433a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,7 @@ target_link_libraries(osslsigncode PRIVATE ${ZLIB_LIBRARIES}) if(NOT UNIX) # https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-shutdown -target_link_libraries(osslsigncode PRIVATE Ws2_32.lib crypt32.lib) +target_link_libraries(osslsigncode PRIVATE ws2_32.lib crypt32.lib) endif(NOT UNIX) # add paths to linker search and installed rpath