From: Jay Satiro Date: Mon, 19 Jul 2021 17:59:06 +0000 (-0400) Subject: winbuild: support alternate nghttp2 static lib name X-Git-Tag: curl-7_78_0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b84f536865048733acbf3bea7914983e3263cea;p=thirdparty%2Fcurl.git winbuild: support alternate nghttp2 static lib name - Support both nghttp2.lib and nghttp2_static.lib for static nghttp2. nghttp2 briefly changed its static lib name to nghttp2_static, but then made the _static suffix optional. Ref: https://github.com/nghttp2/nghttp2/pull/1394 Ref: https://github.com/nghttp2/nghttp2/pull/1418 Ref: https://github.com/nghttp2/nghttp2/issues/1466 Reported-by: Pierre Yager Fixes https://github.com/curl/curl/issues/7446 Closes https://github.com/curl/curl/pull/7447 --- diff --git a/winbuild/MakefileBuild.vc b/winbuild/MakefileBuild.vc index 4112b8fca3..6f5b1d168d 100644 --- a/winbuild/MakefileBuild.vc +++ b/winbuild/MakefileBuild.vc @@ -157,7 +157,11 @@ NGHTTP2_CFLAGS = /DUSE_NGHTTP2 /I"$(NGHTTP2_INC_DIR)" NGHTTP2_LIBS = nghttp2.lib !ELSEIF "$(WITH_NGHTTP2)"=="static" NGHTTP2_CFLAGS = /DUSE_NGHTTP2 /DNGHTTP2_STATICLIB /I"$(NGHTTP2_INC_DIR)" +!IF EXISTS("$(NGHTTP2_LIB_DIR)\nghttp2_static.lib") NGHTTP2_LIBS = nghttp2_static.lib +!ELSE +NGHTTP2_LIBS = nghttp2.lib +!ENDIF !ENDIF