Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit e5eb861

Browse files
committed
rebuild win32 builds with forcing winidn
1 parent 8c8cfe8 commit e5eb861

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

lib-openssl/PKGBUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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[@]}"

lib-openssl/i386/libcurl.a

1.23 KB
Binary file not shown.

lib-winssl/PKGBUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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[@]}"

lib-winssl/i386/libcurl.a

1.23 KB
Binary file not shown.

readme.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
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

95
The 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.

0 commit comments

Comments
 (0)