可执行文件下载链接: https://pan.baidu.com/s/16FrimYsqhiMw2jO_c3wuAQ 提取码: 292n
-------------------------------------------------------------------------------------------- wget-1.20.3 -------------------------------------------------------------------------------------------- export LIBS='-lunistring -liconv -lpsapi -lws2_32 -lmswsock -lshlwapi -lstdc++ -static' export CFLAGS='-I/usr/local/include -D_WIN32_WINNT=0x0600' export CPPFLAGS='-I/usr/local/include -D_WIN32_WINNT=0x0600' export CXXFLAGS='-I/usr/local/include -D_WIN32_WINNT=0x0600' export LDFLAGS=-L/usr/local/lib GnuTLS 3.4.x is source compatible with GnuTLS 3.3.x releases; however, several deprecated functions were removed, and are listed below. Old function gnutls_protocol_set_priority Replacement gnutls_priority_set_direct patch wget-1.20.3/src/gnutls.c gnutls.c-gnutls_protocol_set_priority.patch --- gnutls.c.orig 2019-02-10 18:48:02 +0800 +++ gnutls.c 2020-08-29 12:41:52 +0800 @@ -690,7 +690,7 @@ set_prio_default (gnutls_session_t sessi case secure_protocol_sslv2: case secure_protocol_sslv3: allowed_protocols[0] = GNUTLS_SSL3; - err = gnutls_protocol_set_priority (session, allowed_protocols); + err = gnutls_priority_set_direct (session, allowed_protocols, NULL); break; case secure_protocol_tlsv1: @@ -700,7 +700,7 @@ set_prio_default (gnutls_session_t sessi #if GNUTLS_VERSION_NUMBER >= 0x030603 allowed_protocols[3] = GNUTLS_TLS1_3; #endif - err = gnutls_protocol_set_priority (session, allowed_protocols); + err = gnutls_priority_set_direct (session, allowed_protocols, NULL); break; case secure_protocol_tlsv1_1: @@ -709,7 +709,7 @@ set_prio_default (gnutls_session_t sessi #if GNUTLS_VERSION_NUMBER >= 0x030603 allowed_protocols[2] = GNUTLS_TLS1_3; #endif - err = gnutls_protocol_set_priority (session, allowed_protocols); + err = gnutls_priority_set_direct (session, allowed_protocols, NULL); break; case secure_protocol_tlsv1_2: @@ -717,13 +717,13 @@ set_prio_default (gnutls_session_t sessi #if GNUTLS_VERSION_NUMBER >= 0x030603 allowed_protocols[1] = GNUTLS_TLS1_3; #endif - err = gnutls_protocol_set_priority (session, allowed_protocols); + err = gnutls_priority_set_direct (session, allowed_protocols, NULL); break; case secure_protocol_tlsv1_3: #if GNUTLS_VERSION_NUMBER >= 0x030603 allowed_protocols[0] = GNUTLS_TLS1_3; - err = gnutls_protocol_set_priority (session, allowed_protocols); + err = gnutls_priority_set_direct (session, allowed_protocols, NULL); break; #else logprintf (LOG_NOTQUIET, _("Your GnuTLS version is too old to support TLS 1.3 ")); ./configure --prefix=/usr/local --disable-shared --enable-static --with-cares --with-metalink --with-libiconv-prefix=/usr/local --with-libintl-prefix=/usr/local --with-libidn=/usr/local configure: Summary of build options: Version: 1.20.3 Host OS: mingw32 Install prefix: /usr/local Compiler: gcc CFlags: -ID:/MSYS/local/include -DCARES_STATICLIB -ID:/MSYS/local/include -DPCRE2_STATIC -ID:/MSYS/local/include -ID:/MSYS/local/include -DHAVE_LIBGNUTLS -ID:/MSYS/local/include -ID:/MSYS/local/include -DNDEBUG -I/usr/local/include -D_WIN32_WINNT=0x0600 -I/usr/local/include -D_WIN32_WINNT=0x0600 LDFlags: -L/usr/local/lib Libs: -LD:/MSYS/local/lib -lmetalink -LD:/MSYS/local/lib -lcares -LD:/MSYS/local/lib -lpcre2-8 -lidn2 -lnettle -LD:/MSYS/local/lib -lgnutls -LD:/MSYS/local/lib -lz -LD:/MSYS/local/lib -lpsl -lunistring -liconv -lpsapi -lws2_32 -lmswsock -lshlwapi -lstdc++ -static -lws2_32 SSL: gnutls Zlib: yes PSL: yes PCRE: yes, via libpcre2 Digest: yes NTLM: yes OPIE: yes POSIX xattr: no Debugging: yes Assertions: no Valgrind: Valgrind testing not enabled Metalink: yes Resolver: libcares, --bind-dns-address and --dns-servers available GPGME: no IRI: yes Fuzzing build: no wget-1.20.3/src/Makefile LIBS = -LD:/MSYS/local/lib -lmetalink -LD:/MSYS/local/lib -lcares -LD:/MSYS/local/lib -lpcre2-8 -lidn2 -lnettle -LD:/MSYS/local/lib -lgnutls -LD:/MSYS/local/lib -lz -LD:/MSYS/local/lib -lpsl -lunistring -liconv -lpsapi -lws2_32 -lmswsock -lshlwapi -lws2_32 -lmetalink -lexpat -lgnutls -lintl -liconv -lws2_32 -lgmp -lunistring -latomic -lcrypt32 -lhogweed -lgmp -lpsapi -lws2_32 -lmswsock -lshlwapi -lnettle -ltasn1 -lsicuuc -lsicudt -lstdc++ -static make strip src/wget.exe make install --------------------------------------------------------------------------------------------