- Check for zlib static library name zlibstatic.lib.
zlib's static library has a different name depending on how it was
built. zlibstatic.lib is output by cmake. zlibstat.lib is output by
their pre-generated Visual Studio project files (in the contrib
directory) and defines ZLIB_WINAPI (ie it's meant to use stdcall
instead of cdecl if you end up exporting the zlib functions).
Prior to this change the makefile only checked for the latter.
Closes https://github.com/curl/curl/pull/11521
!IF EXISTS("$(ZLIB_LIB_DIR)\zlibstat.lib")\r
ZLIB_LIBS = zlibstat.lib\r
ADDITIONAL_ZLIB_CFLAGS = /DZLIB_WINAPI\r
+!ELSEIF EXISTS("$(ZLIB_LIB_DIR)\zlibstatic.lib")\r
+ZLIB_LIBS = zlibstatic.lib\r
!ELSEIF EXISTS("$(ZLIB_LIB_DIR)\zlib.lib")\r
ZLIB_LIBS = zlib.lib\r
!ELSE\r