@@ -296,11 +296,16 @@ def get_library_paths():
296296print (f" nghttp2 lib: { LIB_PATHS ['nghttp2_lib' ]} " )
297297print ()
298298
299- # Platform-specific compile args for extensions
299+ # Platform-specific compile args and libraries for extensions
300300if IS_WINDOWS :
301301 EXT_COMPILE_ARGS = ["/O2" , "/DHAVE_NGHTTP2" ]
302+ # vcpkg library names on Windows (without .lib extension)
303+ # Links to: libssl.lib, libcrypto.lib, nghttp2.lib, zlib.lib
304+ EXT_LIBRARIES = ["libssl" , "libcrypto" , "nghttp2" , "zlib" ]
302305else :
303306 EXT_COMPILE_ARGS = ["-std=c11" , "-O2" , "-DHAVE_NGHTTP2" ]
307+ # Unix library names
308+ EXT_LIBRARIES = ["ssl" , "crypto" , "nghttp2" , "z" ]
304309
305310# Define C extension modules
306311extensions = [
@@ -324,7 +329,7 @@ def get_library_paths():
324329 LIB_PATHS ["openssl_lib" ],
325330 LIB_PATHS ["nghttp2_lib" ],
326331 ],
327- libraries = [ "ssl" , "crypto" , "nghttp2" , "z" ] ,
332+ libraries = EXT_LIBRARIES ,
328333 extra_compile_args = EXT_COMPILE_ARGS ,
329334 language = "c" ,
330335 ),
@@ -344,7 +349,7 @@ def get_library_paths():
344349 LIB_PATHS ["openssl_lib" ],
345350 LIB_PATHS ["nghttp2_lib" ],
346351 ],
347- libraries = [ "ssl" , "crypto" , "nghttp2" , "z" ] ,
352+ libraries = EXT_LIBRARIES ,
348353 extra_compile_args = EXT_COMPILE_ARGS if IS_WINDOWS else ["-std=c11" , "-O2" ],
349354 language = "c" ,
350355 ),
0 commit comments