ソースを参照

Add libssh2 to mingw build config

Tatsuhiro Tsujikawa 10 年 前
コミット
381533e32d
4 ファイル変更21 行追加0 行削除
  1. 1 0
      README.mingw
  2. 1 0
      README.rst
  3. 17 0
      mingw-build-memo
  4. 2 0
      mingw-config

+ 1 - 0
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
 

+ 1 - 0
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:

+ 17 - 0
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
 ----
 

+ 2 - 0
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 \