This repository was archived by the owner on Jan 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ build() {
8585 _variant_config+=(" --with-ca-bundle=${MINGW_PREFIX} /ssl/certs/ca-bundle.crt" )
8686 fi
8787 export curl_disallow_strtok_r=" yes"
88+ export CPPFLAGS=" -DUSE_WIN32_IDN -DWINVER=0x0600"
8889 cd " ${srcdir} /build-${CARCH} "
8990 ../${_realname} -${pkgver} /configure \
9091 --prefix=${MINGW_PREFIX} \
@@ -95,7 +96,7 @@ build() {
9596 --enable-static \
9697 --enable-shared \
9798 --enable-sspi \
98- --without-librtmp --with-winidn --without-nghttp2 \
99+ --without-librtmp --with-winidn --without-libidn2 --without- nghttp2 \
99100 --with-libmetalink=${MINGW_PREFIX} \
100101 " ${_variant_config[@]} " \
101102 " ${extra_config[@]} "
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ build() {
8686 _variant_config+=(' --with-nghttp2=${MINGW_PREFIX}/' )
8787 fi
8888 export curl_disallow_strtok_r=" yes"
89+ export CPPFLAGS=" -DUSE_WIN32_IDN -DWINVER=0x0600"
8990 cd " ${srcdir} /build-${CARCH} "
9091 ../${_realname} -${pkgver} /configure \
9192 --prefix=${MINGW_PREFIX} \
@@ -96,7 +97,7 @@ build() {
9697 --enable-static \
9798 --enable-shared \
9899 --enable-sspi \
99- --without-libssh2 --without-librtmp --with-winidn \
100+ --without-libssh2 --without-librtmp --without-libidn2 -- with-winidn \
100101 --with-libmetalink=${MINGW_PREFIX} \
101102 " ${_variant_config[@]} " \
102103 " ${extra_config[@]} "
Original file line number Diff line number Diff line change 1- This libcurl was built with msys2. We only added
2-
3- export curl_disallow_strtok_r="yes"
4-
5- The OpenSSL build has to be linked using:
1+ This libcurl was built with msys2. The OpenSSL build has to be linked using:
62
73 -lcurl -lssh2 -lz -lssl -lcrypto -lgdi32 -lws2_32 -lcrypt32 -lwldap32
84
95The WinSSL (native SecureChannel) build has to be linked using:
106
11- -lcurl -lz -lws2_32 -lcrypt32 -lwldap32
7+ -lcurl -lz -lws2_32 -lcrypt32 -lwldap32
128
13- Both libs were compiled with native Windows SSPI and IDN.
9+ Both builds are configured with:
10+
11+ --with-winidn
12+ --enable-sspi
13+ --without-librtmp
14+ --without-libidn2
15+
16+ We also used the following vars:
17+
18+ export curl_disallow_strtok_r="yes"
19+ export CPPFLAGS="-DUSE_WIN32_IDN -DWINVER=0x0600"
20+
21+ The latter is needed to work around an autoconf bug which does not correclty detect winidn on mingw32.
You can’t perform that action at this time.
0 commit comments