Skip to content

Commit

Permalink
mingw32: Enable wintls and compile with GMP
Browse files Browse the repository at this point in the history
By enabling wintls, we can use Windows certificate store to validate
server's certificate.  Previously, we built windows build using
openssl and since we don't bundle CA certificates, aria2 fails to
validate server's certificate unless user setups their CA
certificates.  GMP provides fast big integer calculations, whic is
used in BitTorrent encryption.
  • Loading branch information
tatsuhiro-t committed Apr 15, 2014
1 parent e4135ca commit 8369198
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Debian Linux.
The executable is statically linked, so no extra DLLs are
necessary. The linked libraries are:

* openssl 1.0.1g
* gmp 6.0.0
* expat 2.1.0
* sqlite 3.8.4.1
* zlib 1.2.8
Expand Down
16 changes: 16 additions & 0 deletions mingw-build-memo
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ HOST=i686-w64-mingw32
HOST=x86_64-w64-mingw32
./Configure --cross-compile-prefix=$HOST- --prefix=/usr/local/$HOST mingw64

GMP
---

HOST=i686-w64-mingw32
./configure \
--disable-shared \
--enable-static \
--prefix=/usr/local/$HOST \
--host=$HOST \
--disable-cxx \
--enable-fat \
CFLAGS="-mtune=generic -O2 -g0"

HOST=x86_64-w64-mingw32
The configure command-line is the same as i686 version.

Sqlite
------

Expand Down
6 changes: 4 additions & 2 deletions mingw-config
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# In this configuration, the following dependent libraries are used:
#
# * c-ares
# * openssl
# * gmp
# * expat
# * sqlite3
# * zlib
Expand All @@ -63,12 +63,14 @@ test -z "$PREFIX" && PREFIX=/usr/local/$HOST
--without-included-gettext \
--disable-nls \
--with-libcares \
--with-wintls \
--without-gnutls \
--with-openssl \
--without-openssl \
--with-sqlite3 \
--without-libxml2 \
--with-libexpat \
--with-libz \
--with-libgmp \
--without-libgcrypt \
--without-libnettle \
--with-cppunit-prefix=$PREFIX \
Expand Down

0 comments on commit 8369198

Please sign in to comment.