Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
d2e1de19c7 | |||
018bf3adf9 | |||
fb2a6d71c8 | |||
4de29ffcd9 | |||
|
e79ee14f61 | ||
|
63c510e372 | ||
|
e65cddfce7 |
44
README.md
44
README.md
@ -1,36 +1,34 @@
|
|||||||
aria2 static builds for GNU/Linux & Windows.
|
aria2 static builds for GNU/Linux & Windows.
|
||||||
============================================
|
============================================
|
||||||
|
|
||||||
### aria2 1.36.0 builds (with OpenSSL):
|
### aria2 1.37.0 builds (with OpenSSL):
|
||||||
|
|
||||||
* **`GNU/Linux downloads:`**
|
* **`GNU/Linux downloads:`**
|
||||||
|
* [aria2-1.37.0-linux-gnu-32bit-build1.tar.bz2](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Generic Linux x86)
|
||||||
* Generic (All distros):
|
* [aria2-1.37.0-linux-gnu-64bit-build1.tar.bz2](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Generic Linux x86_64)
|
||||||
|
* [aria2-1.37.0-linux-gnu-arm-rbpi-build1.tar.bz2](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Generic Linux ARM32)
|
||||||
* [aria2-1.36.0-linux-gnu-32bit-build1.tar.bz2](https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-linux-gnu-32bit-build1.tar.bz2)
|
* [aria2-1.37.0-linux-gnu-32bit-build1.deb](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Debian/Ubuntu x86)
|
||||||
* [aria2-1.36.0-linux-gnu-64bit-build1.tar.bz2](https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-linux-gnu-64bit-build1.tar.bz2)
|
* [aria2-1.37.0-linux-gnu-64bit-build1.deb](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Debian/Ubuntu x86_64)
|
||||||
* [aria2-1.36.0-linux-gnu-arm-rbpi-build1.tar.bz2](https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-linux-gnu-arm-rbpi-build1.tar.bz2)
|
* [aria2-1.37.0-linux-gnu-arm-rbpi-build1.deb](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Debian/Ubuntu ARM32)
|
||||||
|
* [aria2-1.37.0-linux-gnu-32bit-build1.rpm](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (RedHat/Fedora x86)
|
||||||
* DEB (Debian Based):
|
* [aria2-1.37.0-linux-gnu-64bit-build1.rpm](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (RedHat/Fedora x86_64)
|
||||||
|
|
||||||
* [aria2-1.36.0-linux-gnu-32bit-build1.deb](https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-linux-gnu-32bit-build1.deb)
|
|
||||||
* [aria2-1.36.0-linux-gnu-64bit-build1.deb](https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-linux-gnu-64bit-build1.deb)
|
|
||||||
* [aria2-1.36.0-linux-gnu-arm-rbpi-build1.deb](https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-linux-gnu-arm-rbpi-build1.deb)
|
|
||||||
|
|
||||||
* **`Windows downloads:`**
|
* **`Windows downloads:`**
|
||||||
* [aria2-1.36.0-win-32bit-build1.7z](https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-win-32bit-build1.7z)
|
* [aria2-1.37.0-win-32bit-build1.7z](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR)
|
||||||
* [aria2-1.36.0-win-64bit-build1.7z](https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-win-64bit-build1.7z)
|
* [aria2-1.37.0-win-64bit-build1.7z](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR)
|
||||||
|
|
||||||
* **`CA-Certificates:`**
|
* **`CA-Certificates:`**
|
||||||
* [ca-certificates.crt](https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/ca-certificates.crt)
|
* [ca-certificates.crt](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR)
|
||||||
|
|
||||||
* **`Source code:`**
|
* **`Source code:`**
|
||||||
* [aria2-1.36.0.tar.bz2](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.bz2)
|
* [aria2-1.37.0.tar.bz2](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.bz2)
|
||||||
* [aria2-1.36.0.tar.gz](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.gz)
|
* [aria2-1.37.0.tar.gz](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.gz)
|
||||||
* [aria2-1.36.0.tar.xz](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.xz)
|
* [aria2-1.37.0.tar.xz](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz)
|
||||||
|
|
||||||
_Note: The error with `bcrypt.dll` library on `Windows XP` has been fixed._
|
_Note: The error with `bcrypt.dll` library on `Windows XP` has been fixed._
|
||||||
|
|
||||||
|
_Info: In this version, the Windows builds include manifest for Windows 10 (Contributed by [eladkarako](https://github.com/eladkarako))_
|
||||||
|
|
||||||
### How to install:
|
### How to install:
|
||||||
|
|
||||||
* **GNU/Linux instructions:**
|
* **GNU/Linux instructions:**
|
||||||
@ -38,8 +36,8 @@ _Note: The error with `bcrypt.dll` library on `Windows XP` has been fixed._
|
|||||||
* Open the terminal and type the following commands:
|
* Open the terminal and type the following commands:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ tar jxvf aria2-1.36.0-linux-gnu-[arch]-build1.tar.bz2
|
$ tar jxvf aria2-1.37.0-linux-gnu-[arch]-build1.tar.bz2
|
||||||
$ cd aria2-1.36.0-linux-gnu-[arch]-build1
|
$ cd aria2-1.37.0-linux-gnu-[arch]-build1
|
||||||
$ sudo make install
|
$ sudo make install
|
||||||
````
|
````
|
||||||
|
|
||||||
@ -74,8 +72,8 @@ C:\PATH\> aria2c --check-certificate=false <URL>
|
|||||||
### Used external libraries:
|
### Used external libraries:
|
||||||
|
|
||||||
* http://www.zlib.net/
|
* http://www.zlib.net/
|
||||||
* http://expat.sourceforge.net/
|
* https://libexpat.github.io/
|
||||||
* http://c-ares.haxx.se/
|
* https://c-ares.org/
|
||||||
* http://www.sqlite.org/
|
* http://www.sqlite.org/
|
||||||
* http://www.openssl.org/
|
* http://www.openssl.org/
|
||||||
* http://www.libssh2.org/
|
* http://www.libssh2.org/
|
||||||
|
@ -18,12 +18,12 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## DEPENDENCES ##
|
## DEPENDENCES ##
|
||||||
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
|
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
|
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
|
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||||
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
|
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||||
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
|
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||||
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
|
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||||
|
|
||||||
## CONFIG ##
|
## CONFIG ##
|
||||||
ARCH="armhf"
|
ARCH="armhf"
|
||||||
@ -50,8 +50,8 @@ cd $BUILD_DIRECTORY
|
|||||||
#
|
#
|
||||||
# zlib build
|
# zlib build
|
||||||
$DOWNLOADER $ZLIB
|
$DOWNLOADER $ZLIB
|
||||||
tar zxvf zlib-1.2.11.tar.gz
|
tar zxvf zlib-1.3.tar.gz
|
||||||
cd zlib-1.2.11/
|
cd zlib-1.3/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc STRIP=$HOST-strip RANLIB=$HOST-ranlib CXX=$HOST-g++ AR=$HOST-ar LD=$HOST-ld ./configure --prefix=$PREFIX --static
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc STRIP=$HOST-strip RANLIB=$HOST-ranlib CXX=$HOST-g++ AR=$HOST-ar LD=$HOST-ld ./configure --prefix=$PREFIX --static
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -59,8 +59,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# expat build
|
# expat build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $EXPAT
|
$DOWNLOADER $EXPAT
|
||||||
tar jxvf expat-2.4.1.tar.bz2
|
tar jxvf expat-2.5.0.tar.bz2
|
||||||
cd expat-2.4.1/
|
cd expat-2.5.0/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./configure --host=$HOST --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` --prefix=$PREFIX --enable-static=yes --enable-shared=no
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./configure --host=$HOST --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` --prefix=$PREFIX --enable-static=yes --enable-shared=no
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -68,17 +68,17 @@ cd $BUILD_DIRECTORY
|
|||||||
# c-ares build
|
# c-ares build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $C_ARES
|
$DOWNLOADER $C_ARES
|
||||||
tar zxvf c-ares-1.17.2.tar.gz
|
tar zxvf c-ares-1.24.0.tar.gz
|
||||||
cd c-ares-1.17.2/
|
cd c-ares-1.24.0/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./configure --host=$HOST --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` --prefix=$PREFIX --enable-static --disable-shared
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./configure --host=$HOST --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` --prefix=$PREFIX --disable-tests --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
# Openssl build
|
# Openssl build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $OPENSSL
|
$DOWNLOADER $OPENSSL
|
||||||
tar zxvf openssl-1.1.1l.tar.gz
|
tar zxvf openssl-1.1.1w.tar.gz
|
||||||
cd openssl-1.1.1l/
|
cd openssl-1.1.1w/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./Configure linux-armv4 $CFLAGS --prefix=$PREFIX shared zlib zlib-dynamic -D_GNU_SOURCE -D_BSD_SOURCE --with-zlib-lib=$LOCAL_DIR/lib --with-zlib-include=$LOCAL_DIR/include
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./Configure linux-armv4 $CFLAGS --prefix=$PREFIX shared zlib zlib-dynamic -D_GNU_SOURCE -D_BSD_SOURCE --with-zlib-lib=$LOCAL_DIR/lib --with-zlib-include=$LOCAL_DIR/include
|
||||||
make CC=$CC
|
make CC=$CC
|
||||||
make CC=$CC install INSTALLTOP=$DEST OPENSSLDIR=$DEST/ssl
|
make CC=$CC install INSTALLTOP=$DEST OPENSSLDIR=$DEST/ssl
|
||||||
@ -86,8 +86,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# sqlite3
|
# sqlite3
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SQLITE3
|
$DOWNLOADER $SQLITE3
|
||||||
tar zxvf sqlite-autoconf-3360000.tar.gz
|
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||||
cd sqlite-autoconf-3360000/
|
cd sqlite-autoconf-3440200/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./configure --host=$HOST --prefix=$PREFIX --enable-static --enable-shared --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./configure --host=$HOST --prefix=$PREFIX --enable-static --enable-shared --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -95,8 +95,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# libssh2
|
# libssh2
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SSH2
|
$DOWNLOADER $SSH2
|
||||||
tar zxvf libssh2-1.9.0.tar.gz
|
tar zxvf libssh2-1.11.0.tar.gz
|
||||||
cd libssh2-1.9.0/
|
cd libssh2-1.11.0/
|
||||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --host=$HOST --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --host=$HOST --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
|
@ -25,12 +25,12 @@ CXX_COMPILER="g++"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## DEPENDENCES ##
|
## DEPENDENCES ##
|
||||||
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
|
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
|
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
|
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||||
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
|
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||||
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
|
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||||
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
|
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||||
|
|
||||||
## CONFIG ##
|
## CONFIG ##
|
||||||
BUILD_DIRECTORY=/tmp/
|
BUILD_DIRECTORY=/tmp/
|
||||||
@ -43,8 +43,8 @@ export LDFLAGS="-m32"
|
|||||||
#
|
#
|
||||||
# zlib build
|
# zlib build
|
||||||
$DOWNLOADER $ZLIB
|
$DOWNLOADER $ZLIB
|
||||||
tar zxvf zlib-1.2.11.tar.gz
|
tar zxvf zlib-1.3.tar.gz
|
||||||
cd zlib-1.2.11/
|
cd zlib-1.3/
|
||||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --static
|
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --static
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -52,8 +52,8 @@ export LDFLAGS="-m32"
|
|||||||
# expat build
|
# expat build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $EXPAT
|
$DOWNLOADER $EXPAT
|
||||||
tar jxvf expat-2.4.1.tar.bz2
|
tar jxvf expat-2.5.0.tar.bz2
|
||||||
cd expat-2.4.1/
|
cd expat-2.5.0/
|
||||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -61,17 +61,17 @@ export LDFLAGS="-m32"
|
|||||||
# c-ares build
|
# c-ares build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $C_ARES
|
$DOWNLOADER $C_ARES
|
||||||
tar zxvf c-ares-1.17.2.tar.gz
|
tar zxvf c-ares-1.24.0.tar.gz
|
||||||
cd c-ares-1.17.2/
|
cd c-ares-1.24.0/
|
||||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --disable-tests --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
# Openssl build
|
# Openssl build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $OPENSSL
|
$DOWNLOADER $OPENSSL
|
||||||
tar zxvf openssl-1.1.1l.tar.gz
|
tar zxvf openssl-1.1.1w.tar.gz
|
||||||
cd openssl-1.1.1l/
|
cd openssl-1.1.1w/
|
||||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./Configure --prefix=$PREFIX linux-elf shared
|
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./Configure --prefix=$PREFIX linux-elf shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -79,8 +79,8 @@ export LDFLAGS="-m32"
|
|||||||
# sqlite3
|
# sqlite3
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SQLITE3
|
$DOWNLOADER $SQLITE3
|
||||||
tar zxvf sqlite-autoconf-3360000.tar.gz
|
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||||
cd sqlite-autoconf-3360000/
|
cd sqlite-autoconf-3440200/
|
||||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -88,8 +88,8 @@ export LDFLAGS="-m32"
|
|||||||
# libssh2
|
# libssh2
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SSH2
|
$DOWNLOADER $SSH2
|
||||||
tar zxvf libssh2-1.9.0.tar.gz
|
tar zxvf libssh2-1.11.0.tar.gz
|
||||||
cd libssh2-1.9.0/
|
cd libssh2-1.11.0/
|
||||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
# * openSSL
|
# * openSSL
|
||||||
# * libssh2
|
# * libssh2
|
||||||
|
|
||||||
|
#IMPORTANT: Require install gcc make
|
||||||
|
|
||||||
#COMPILER AND PATH
|
#COMPILER AND PATH
|
||||||
PREFIX=/opt/aria2/build_libs
|
PREFIX=/opt/aria2/build_libs
|
||||||
C_COMPILER="gcc"
|
C_COMPILER="gcc"
|
||||||
@ -23,12 +25,12 @@ CXX_COMPILER="g++"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## DEPENDENCES ##
|
## DEPENDENCES ##
|
||||||
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
|
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
|
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
|
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||||
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
|
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||||
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
|
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||||
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
|
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||||
|
|
||||||
## CONFIG ##
|
## CONFIG ##
|
||||||
BUILD_DIRECTORY=/tmp/
|
BUILD_DIRECTORY=/tmp/
|
||||||
@ -38,8 +40,8 @@ cd $BUILD_DIRECTORY
|
|||||||
#
|
#
|
||||||
# zlib build
|
# zlib build
|
||||||
$DOWNLOADER $ZLIB
|
$DOWNLOADER $ZLIB
|
||||||
tar zxvf zlib-1.2.11.tar.gz
|
tar zxvf zlib-1.3.tar.gz
|
||||||
cd zlib-1.2.11/
|
cd zlib-1.3/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --static
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --static
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -47,8 +49,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# expat build
|
# expat build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $EXPAT
|
$DOWNLOADER $EXPAT
|
||||||
tar jxvf expat-2.4.1.tar.bz2
|
tar jxvf expat-2.5.0.tar.bz2
|
||||||
cd expat-2.4.1/
|
cd expat-2.5.0/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -56,17 +58,17 @@ cd $BUILD_DIRECTORY
|
|||||||
# c-ares build
|
# c-ares build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $C_ARES
|
$DOWNLOADER $C_ARES
|
||||||
tar zxvf c-ares-1.17.2.tar.gz
|
tar zxvf c-ares-1.24.0.tar.gz
|
||||||
cd c-ares-1.17.2/
|
cd c-ares-1.24.0/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --disable-tests --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
# Openssl build
|
# Openssl build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $OPENSSL
|
$DOWNLOADER $OPENSSL
|
||||||
tar zxvf openssl-1.1.1l.tar.gz
|
tar zxvf openssl-1.1.1w.tar.gz
|
||||||
cd openssl-1.1.1l/
|
cd openssl-1.1.1w/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./Configure --prefix=$PREFIX linux-x86_64 shared
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./Configure --prefix=$PREFIX linux-x86_64 shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -74,8 +76,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# sqlite3
|
# sqlite3
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SQLITE3
|
$DOWNLOADER $SQLITE3
|
||||||
tar zxvf sqlite-autoconf-3360000.tar.gz
|
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||||
cd sqlite-autoconf-3360000/
|
cd sqlite-autoconf-3440200/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -83,8 +85,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# libssh2
|
# libssh2
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SSH2
|
$DOWNLOADER $SSH2
|
||||||
tar zxvf libssh2-1.9.0.tar.gz
|
tar zxvf libssh2-1.11.0.tar.gz
|
||||||
cd libssh2-1.9.0/
|
cd libssh2-1.11.0/
|
||||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
# * libssh2
|
# * libssh2
|
||||||
|
|
||||||
#IMPORTANT: Require install gcc-mingw-w64-i686 g++-mingw-w64-i686
|
#IMPORTANT: Require install gcc-mingw-w64-i686 g++-mingw-w64-i686
|
||||||
|
# cp -rfv /usr/lib32/libdl.a /usr/i686-w64-mingw32/lib/libdl.a
|
||||||
|
|
||||||
#CHECK TOOL FOR DOWNLOAD
|
#CHECK TOOL FOR DOWNLOAD
|
||||||
aria2c --help > /dev/null
|
aria2c --help > /dev/null
|
||||||
@ -20,12 +21,13 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## DEPENDENCES ##
|
## DEPENDENCES ##
|
||||||
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
|
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
|
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
|
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||||
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
|
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||||
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
|
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||||
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
|
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||||
|
GPG_ERROR=https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.47.tar.bz2
|
||||||
|
|
||||||
## CONFIG ##
|
## CONFIG ##
|
||||||
BUILD_DIRECTORY=/tmp/
|
BUILD_DIRECTORY=/tmp/
|
||||||
@ -37,8 +39,8 @@ cd $BUILD_DIRECTORY
|
|||||||
#
|
#
|
||||||
# zlib build
|
# zlib build
|
||||||
$DOWNLOADER $ZLIB
|
$DOWNLOADER $ZLIB
|
||||||
tar zxvf zlib-1.2.11.tar.gz
|
tar zxvf zlib-1.3.tar.gz
|
||||||
cd zlib-1.2.11/
|
cd zlib-1.3/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -46,8 +48,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# expat build
|
# expat build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $EXPAT
|
$DOWNLOADER $EXPAT
|
||||||
tar jxvf expat-2.4.1.tar.bz2
|
tar jxvf expat-2.5.0.tar.bz2
|
||||||
cd expat-2.4.1/
|
cd expat-2.5.0/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -55,17 +57,17 @@ cd $BUILD_DIRECTORY
|
|||||||
# c-ares build
|
# c-ares build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $C_ARES
|
$DOWNLOADER $C_ARES
|
||||||
tar zxvf c-ares-1.17.2.tar.gz
|
tar zxvf c-ares-1.24.0.tar.gz
|
||||||
cd c-ares-1.17.2/
|
cd c-ares-1.24.0/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --disable-tests --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
# Openssl build
|
# Openssl build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $OPENSSL
|
$DOWNLOADER $OPENSSL
|
||||||
tar zxvf openssl-1.1.1l.tar.gz
|
tar zxvf openssl-1.1.1w.tar.gz
|
||||||
cd openssl-1.1.1l/
|
cd openssl-1.1.1w/
|
||||||
./Configure mingw --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
|
./Configure mingw --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -73,8 +75,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# sqlite3
|
# sqlite3
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SQLITE3
|
$DOWNLOADER $SQLITE3
|
||||||
tar zxvf sqlite-autoconf-3360000.tar.gz
|
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||||
cd sqlite-autoconf-3360000/
|
cd sqlite-autoconf-3440200/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -82,12 +84,22 @@ cd $BUILD_DIRECTORY
|
|||||||
# libssh2
|
# libssh2
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SSH2
|
$DOWNLOADER $SSH2
|
||||||
tar zxvf libssh2-1.9.0.tar.gz
|
tar zxvf libssh2-1.11.0.tar.gz
|
||||||
cd libssh2-1.9.0/
|
cd libssh2-1.11.0/
|
||||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
#
|
||||||
|
# gpg-error
|
||||||
|
cd ..
|
||||||
|
$DOWNLOADER $GPG_ERROR
|
||||||
|
tar jxvf libgpg-error-1.47.tar.bz2
|
||||||
|
cd libgpg-error-1.47/
|
||||||
|
rm -rf $PREFIX/lib/pkgconfig/gpg-error.pc
|
||||||
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --host=$HOST --prefix=$PREFIX --enable-static
|
||||||
|
make
|
||||||
|
make install
|
||||||
#
|
#
|
||||||
#cleaning
|
#cleaning
|
||||||
cd ..
|
cd ..
|
||||||
@ -97,6 +109,7 @@ cd $BUILD_DIRECTORY
|
|||||||
rm -rf expat-*
|
rm -rf expat-*
|
||||||
rm -rf openssl-*
|
rm -rf openssl-*
|
||||||
rm -rf libssh2-*
|
rm -rf libssh2-*
|
||||||
|
rm -rf libgpg-error*
|
||||||
|
|
||||||
#
|
#
|
||||||
echo "finished!"
|
echo "finished!"
|
||||||
|
@ -17,7 +17,6 @@ PREFIX=/usr/i686-w64-mingw32
|
|||||||
--prefix=$PREFIX \
|
--prefix=$PREFIX \
|
||||||
--without-included-gettext \
|
--without-included-gettext \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
--with-libcares \
|
|
||||||
--without-gnutls \
|
--without-gnutls \
|
||||||
--without-wintls \
|
--without-wintls \
|
||||||
--with-openssl \
|
--with-openssl \
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
# * libssh2
|
# * libssh2
|
||||||
|
|
||||||
#IMPORTANT: Require install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
|
#IMPORTANT: Require install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
|
||||||
|
# cp -rfv /usr/lib/x86_64-linux-gnu/libdl.a /usr/x86_64-w64-mingw32/lib/
|
||||||
|
|
||||||
#CHECK TOOL FOR DOWNLOAD
|
#CHECK TOOL FOR DOWNLOAD
|
||||||
aria2c --help > /dev/null
|
aria2c --help > /dev/null
|
||||||
@ -20,12 +21,13 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## DEPENDENCES ##
|
## DEPENDENCES ##
|
||||||
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
|
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
|
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
|
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||||
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
|
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||||
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
|
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||||
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
|
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||||
|
GPG_ERROR=https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.47.tar.bz2
|
||||||
|
|
||||||
## CONFIG ##
|
## CONFIG ##
|
||||||
BUILD_DIRECTORY=/tmp/
|
BUILD_DIRECTORY=/tmp/
|
||||||
@ -37,8 +39,8 @@ cd $BUILD_DIRECTORY
|
|||||||
#
|
#
|
||||||
# zlib build
|
# zlib build
|
||||||
$DOWNLOADER $ZLIB
|
$DOWNLOADER $ZLIB
|
||||||
tar zxvf zlib-1.2.11.tar.gz
|
tar zxvf zlib-1.3.tar.gz
|
||||||
cd zlib-1.2.11/
|
cd zlib-1.3/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -46,8 +48,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# expat build
|
# expat build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $EXPAT
|
$DOWNLOADER $EXPAT
|
||||||
tar jxvf expat-2.4.1.tar.bz2
|
tar jxvf expat-2.5.0.tar.bz2
|
||||||
cd expat-2.4.1/
|
cd expat-2.5.0/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -55,17 +57,17 @@ cd $BUILD_DIRECTORY
|
|||||||
# c-ares build
|
# c-ares build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $C_ARES
|
$DOWNLOADER $C_ARES
|
||||||
tar zxvf c-ares-1.17.2.tar.gz
|
tar zxvf c-ares-1.24.0.tar.gz
|
||||||
cd c-ares-1.17.2/
|
cd c-ares-1.24.0/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --disable-tests --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
# Openssl build
|
# Openssl build
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $OPENSSL
|
$DOWNLOADER $OPENSSL
|
||||||
tar zxvf openssl-1.1.1l.tar.gz
|
tar zxvf openssl-1.1.1w.tar.gz
|
||||||
cd openssl-1.1.1l/
|
cd openssl-1.1.1w/
|
||||||
./Configure mingw64 --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
|
./Configure mingw64 --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -73,8 +75,8 @@ cd $BUILD_DIRECTORY
|
|||||||
# sqlite3
|
# sqlite3
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SQLITE3
|
$DOWNLOADER $SQLITE3
|
||||||
tar zxvf sqlite-autoconf-3360000.tar.gz
|
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||||
cd sqlite-autoconf-3360000/
|
cd sqlite-autoconf-3440200/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -82,12 +84,22 @@ cd $BUILD_DIRECTORY
|
|||||||
# libssh2
|
# libssh2
|
||||||
cd ..
|
cd ..
|
||||||
$DOWNLOADER $SSH2
|
$DOWNLOADER $SSH2
|
||||||
tar zxvf libssh2-1.9.0.tar.gz
|
tar zxvf libssh2-1.11.0.tar.gz
|
||||||
cd libssh2-1.9.0/
|
cd libssh2-1.11.0/
|
||||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
#
|
||||||
|
# gpg-error
|
||||||
|
cd ..
|
||||||
|
$DOWNLOADER $GPG_ERROR
|
||||||
|
tar jxvf libgpg-error-1.47.tar.bz2
|
||||||
|
cd libgpg-error-1.47/
|
||||||
|
rm -rf $PREFIX/lib/pkgconfig/gpg-error.pc
|
||||||
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --host=$HOST --prefix=$PREFIX --enable-static
|
||||||
|
make
|
||||||
|
make install
|
||||||
#
|
#
|
||||||
#cleaning
|
#cleaning
|
||||||
cd ..
|
cd ..
|
||||||
@ -97,5 +109,6 @@ cd $BUILD_DIRECTORY
|
|||||||
rm -rf expat-*
|
rm -rf expat-*
|
||||||
rm -rf openssl-*
|
rm -rf openssl-*
|
||||||
rm -rf libssh2-*
|
rm -rf libssh2-*
|
||||||
|
rm -rf libgpg-error*
|
||||||
#
|
#
|
||||||
echo "finished!"
|
echo "finished!"
|
||||||
|
@ -17,7 +17,6 @@ PREFIX=/usr/x86_64-w64-mingw32
|
|||||||
--prefix=$PREFIX \
|
--prefix=$PREFIX \
|
||||||
--without-included-gettext \
|
--without-included-gettext \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
--with-libcares \
|
|
||||||
--without-gnutls \
|
--without-gnutls \
|
||||||
--without-wintls \
|
--without-wintls \
|
||||||
--with-openssl \
|
--with-openssl \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user