From 381533e32d02c0007ad51b31af4f6b40ce16f4dd Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 16 May 2015 21:38:53 +0900 Subject: [PATCH] Add libssh2 to mingw build config --- README.mingw | 1 + README.rst | 1 + mingw-build-memo | 17 +++++++++++++++++ mingw-config | 2 ++ 4 files changed, 21 insertions(+) diff --git a/README.mingw b/README.mingw index 872fae8f..af3252d5 100644 --- a/README.mingw +++ b/README.mingw @@ -17,6 +17,7 @@ necessary. The linked libraries are: * sqlite 3.8.8.2 * zlib 1.2.8 * c-ares 1.10.0 with the dns.patch [1] applied +* libssh2 1.5.0 [1] http://c-ares.haxx.se/mail/c-ares-archive-2014-05/0008.shtml diff --git a/README.rst b/README.rst index c81764ae..648dbb61 100644 --- a/README.rst +++ b/README.rst @@ -309,6 +309,7 @@ following libraries have been built for cross-compile: * expat * sqlite3 * zlib +* libssh2 * cppunit Some environment variables can be adjusted to change build settings: diff --git a/mingw-build-memo b/mingw-build-memo index 3fb3b2c8..eb0031dc 100644 --- a/mingw-build-memo +++ b/mingw-build-memo @@ -53,6 +53,23 @@ HOST=i686-w64-mingw32 HOST=x86_64-w64-mingw32 The configure command-line is the same as i686 version. +libssh2 +------- + +HOST=i686-w64-mingw32 +./configure \ + --disable-shared \ + --enable-static \ + --prefix=/usr/local/$HOST \ + --host=$HOST \ + --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \ + --without-openssl \ + --with-wincng \ + LIBS="-lws2_32" + +HOST=x86_64-w64-mingw32 +The configure command-line is the same as i686 version. + Zlib ---- diff --git a/mingw-config b/mingw-config index 44ab5763..f4ad6dba 100755 --- a/mingw-config +++ b/mingw-config @@ -52,6 +52,7 @@ # * expat # * sqlite3 # * zlib +# * libssh2 # * cppunit test -z "$HOST" && HOST=i686-w64-mingw32 @@ -70,6 +71,7 @@ test -z "$PREFIX" && PREFIX=/usr/local/$HOST --with-libexpat \ --with-libz \ --with-libgmp \ + --with-libssh2 \ --without-libgcrypt \ --without-libnettle \ --with-cppunit-prefix=$PREFIX \