Update scripts build-libs (OpenSSL 1.1.1w, expat 2.5.0, c-ares 1.24.0, sqlite 3.44.2, libssh 1.11.0)

This commit is contained in:
q3aql 2023-12-23 17:31:24 +01:00
parent 4de29ffcd9
commit fb2a6d71c8
7 changed files with 123 additions and 97 deletions

View File

@ -18,12 +18,12 @@
fi
## DEPENDENCES ##
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
## CONFIG ##
ARCH="armhf"
@ -50,8 +50,8 @@ cd $BUILD_DIRECTORY
#
# zlib build
$DOWNLOADER $ZLIB
tar zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11/
tar zxvf zlib-1.3.tar.gz
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
make
make install
@ -59,8 +59,8 @@ cd $BUILD_DIRECTORY
# expat build
cd ..
$DOWNLOADER $EXPAT
tar jxvf expat-2.4.1.tar.bz2
cd expat-2.4.1/
tar jxvf expat-2.5.0.tar.bz2
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
make
make install
@ -68,17 +68,17 @@ cd $BUILD_DIRECTORY
# c-ares build
cd ..
$DOWNLOADER $C_ARES
tar zxvf c-ares-1.17.2.tar.gz
cd c-ares-1.17.2/
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
tar zxvf c-ares-1.24.0.tar.gz
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 --disable-tests --enable-static --disable-shared
make
make install
#
# Openssl build
cd ..
$DOWNLOADER $OPENSSL
tar zxvf openssl-1.1.1l.tar.gz
cd openssl-1.1.1l/
tar zxvf openssl-1.1.1w.tar.gz
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
make CC=$CC
make CC=$CC install INSTALLTOP=$DEST OPENSSLDIR=$DEST/ssl
@ -86,8 +86,8 @@ cd $BUILD_DIRECTORY
# sqlite3
cd ..
$DOWNLOADER $SQLITE3
tar zxvf sqlite-autoconf-3360000.tar.gz
cd sqlite-autoconf-3360000/
tar zxvf sqlite-autoconf-3440200.tar.gz
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`
make
make install
@ -95,8 +95,8 @@ cd $BUILD_DIRECTORY
# libssh2
cd ..
$DOWNLOADER $SSH2
tar zxvf libssh2-1.9.0.tar.gz
cd libssh2-1.9.0/
tar zxvf libssh2-1.11.0.tar.gz
cd libssh2-1.11.0/
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
make

View File

@ -25,12 +25,12 @@ CXX_COMPILER="g++"
fi
## DEPENDENCES ##
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
## CONFIG ##
BUILD_DIRECTORY=/tmp/
@ -43,8 +43,8 @@ export LDFLAGS="-m32"
#
# zlib build
$DOWNLOADER $ZLIB
tar zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11/
tar zxvf zlib-1.3.tar.gz
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
make
make install
@ -52,8 +52,8 @@ export LDFLAGS="-m32"
# expat build
cd ..
$DOWNLOADER $EXPAT
tar jxvf expat-2.4.1.tar.bz2
cd expat-2.4.1/
tar jxvf expat-2.5.0.tar.bz2
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
make
make install
@ -61,17 +61,17 @@ export LDFLAGS="-m32"
# c-ares build
cd ..
$DOWNLOADER $C_ARES
tar zxvf c-ares-1.17.2.tar.gz
cd c-ares-1.17.2/
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
tar zxvf c-ares-1.24.0.tar.gz
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 --disable-tests --enable-static --disable-shared
make
make install
#
# Openssl build
cd ..
$DOWNLOADER $OPENSSL
tar zxvf openssl-1.1.1l.tar.gz
cd openssl-1.1.1l/
tar zxvf openssl-1.1.1w.tar.gz
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
make
make install
@ -79,8 +79,8 @@ export LDFLAGS="-m32"
# sqlite3
cd ..
$DOWNLOADER $SQLITE3
tar zxvf sqlite-autoconf-3360000.tar.gz
cd sqlite-autoconf-3360000/
tar zxvf sqlite-autoconf-3440200.tar.gz
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
make
make install
@ -88,8 +88,8 @@ export LDFLAGS="-m32"
# libssh2
cd ..
$DOWNLOADER $SSH2
tar zxvf libssh2-1.9.0.tar.gz
cd libssh2-1.9.0/
tar zxvf libssh2-1.11.0.tar.gz
cd libssh2-1.11.0/
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
make

View File

@ -9,6 +9,8 @@
# * openSSL
# * libssh2
#IMPORTANT: Require install gcc make
#COMPILER AND PATH
PREFIX=/opt/aria2/build_libs
C_COMPILER="gcc"
@ -23,12 +25,12 @@ CXX_COMPILER="g++"
fi
## DEPENDENCES ##
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
## CONFIG ##
BUILD_DIRECTORY=/tmp/
@ -38,8 +40,8 @@ cd $BUILD_DIRECTORY
#
# zlib build
$DOWNLOADER $ZLIB
tar zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11/
tar zxvf zlib-1.3.tar.gz
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
make
make install
@ -47,8 +49,8 @@ cd $BUILD_DIRECTORY
# expat build
cd ..
$DOWNLOADER $EXPAT
tar jxvf expat-2.4.1.tar.bz2
cd expat-2.4.1/
tar jxvf expat-2.5.0.tar.bz2
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
make
make install
@ -56,17 +58,17 @@ cd $BUILD_DIRECTORY
# c-ares build
cd ..
$DOWNLOADER $C_ARES
tar zxvf c-ares-1.17.2.tar.gz
cd c-ares-1.17.2/
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared
tar zxvf c-ares-1.24.0.tar.gz
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 --disable-tests --enable-static --disable-shared
make
make install
#
# Openssl build
cd ..
$DOWNLOADER $OPENSSL
tar zxvf openssl-1.1.1l.tar.gz
cd openssl-1.1.1l/
tar zxvf openssl-1.1.1w.tar.gz
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
make
make install
@ -74,8 +76,8 @@ cd $BUILD_DIRECTORY
# sqlite3
cd ..
$DOWNLOADER $SQLITE3
tar zxvf sqlite-autoconf-3360000.tar.gz
cd sqlite-autoconf-3360000/
tar zxvf sqlite-autoconf-3440200.tar.gz
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
make
make install
@ -83,8 +85,8 @@ cd $BUILD_DIRECTORY
# libssh2
cd ..
$DOWNLOADER $SSH2
tar zxvf libssh2-1.9.0.tar.gz
cd libssh2-1.9.0/
tar zxvf libssh2-1.11.0.tar.gz
cd libssh2-1.11.0/
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
make

View File

@ -10,6 +10,7 @@
# * libssh2
#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
aria2c --help > /dev/null
@ -20,12 +21,13 @@
fi
## DEPENDENCES ##
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
C_ARES=https://c-ares.org/download/c-ares-1.24.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 ##
BUILD_DIRECTORY=/tmp/
@ -37,8 +39,8 @@ cd $BUILD_DIRECTORY
#
# zlib build
$DOWNLOADER $ZLIB
tar zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11/
tar zxvf zlib-1.3.tar.gz
cd zlib-1.3/
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static
make
make install
@ -46,8 +48,8 @@ cd $BUILD_DIRECTORY
# expat build
cd ..
$DOWNLOADER $EXPAT
tar jxvf expat-2.4.1.tar.bz2
cd expat-2.4.1/
tar jxvf expat-2.5.0.tar.bz2
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
make
make install
@ -55,17 +57,17 @@ cd $BUILD_DIRECTORY
# c-ares build
cd ..
$DOWNLOADER $C_ARES
tar zxvf c-ares-1.17.2.tar.gz
cd c-ares-1.17.2/
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
tar zxvf c-ares-1.24.0.tar.gz
cd c-ares-1.24.0/
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 install
#
# Openssl build
cd ..
$DOWNLOADER $OPENSSL
tar zxvf openssl-1.1.1l.tar.gz
cd openssl-1.1.1l/
tar zxvf openssl-1.1.1w.tar.gz
cd openssl-1.1.1w/
./Configure mingw --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
make
make install
@ -73,8 +75,8 @@ cd $BUILD_DIRECTORY
# sqlite3
cd ..
$DOWNLOADER $SQLITE3
tar zxvf sqlite-autoconf-3360000.tar.gz
cd sqlite-autoconf-3360000/
tar zxvf sqlite-autoconf-3440200.tar.gz
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
make
make install
@ -82,12 +84,22 @@ cd $BUILD_DIRECTORY
# libssh2
cd ..
$DOWNLOADER $SSH2
tar zxvf libssh2-1.9.0.tar.gz
cd libssh2-1.9.0/
tar zxvf libssh2-1.11.0.tar.gz
cd libssh2-1.11.0/
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
make
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
cd ..
@ -97,6 +109,7 @@ cd $BUILD_DIRECTORY
rm -rf expat-*
rm -rf openssl-*
rm -rf libssh2-*
rm -rf libgpg-error*
#
echo "finished!"

View File

@ -17,7 +17,6 @@ PREFIX=/usr/i686-w64-mingw32
--prefix=$PREFIX \
--without-included-gettext \
--disable-nls \
--with-libcares \
--without-gnutls \
--without-wintls \
--with-openssl \

View File

@ -10,6 +10,7 @@
# * libssh2
#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
aria2c --help > /dev/null
@ -20,12 +21,13 @@
fi
## DEPENDENCES ##
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1l.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2
SQLITE3=https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
C_ARES=https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz
SSH2=https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
C_ARES=https://c-ares.org/download/c-ares-1.24.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 ##
BUILD_DIRECTORY=/tmp/
@ -37,8 +39,8 @@ cd $BUILD_DIRECTORY
#
# zlib build
$DOWNLOADER $ZLIB
tar zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11/
tar zxvf zlib-1.3.tar.gz
cd zlib-1.3/
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static
make
make install
@ -46,8 +48,8 @@ cd $BUILD_DIRECTORY
# expat build
cd ..
$DOWNLOADER $EXPAT
tar jxvf expat-2.4.1.tar.bz2
cd expat-2.4.1/
tar jxvf expat-2.5.0.tar.bz2
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
make
make install
@ -55,17 +57,17 @@ cd $BUILD_DIRECTORY
# c-ares build
cd ..
$DOWNLOADER $C_ARES
tar zxvf c-ares-1.17.2.tar.gz
cd c-ares-1.17.2/
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
tar zxvf c-ares-1.24.0.tar.gz
cd c-ares-1.24.0/
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 install
#
# Openssl build
cd ..
$DOWNLOADER $OPENSSL
tar zxvf openssl-1.1.1l.tar.gz
cd openssl-1.1.1l/
tar zxvf openssl-1.1.1w.tar.gz
cd openssl-1.1.1w/
./Configure mingw64 --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
make
make install
@ -73,8 +75,8 @@ cd $BUILD_DIRECTORY
# sqlite3
cd ..
$DOWNLOADER $SQLITE3
tar zxvf sqlite-autoconf-3360000.tar.gz
cd sqlite-autoconf-3360000/
tar zxvf sqlite-autoconf-3440200.tar.gz
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
make
make install
@ -82,12 +84,22 @@ cd $BUILD_DIRECTORY
# libssh2
cd ..
$DOWNLOADER $SSH2
tar zxvf libssh2-1.9.0.tar.gz
cd libssh2-1.9.0/
tar zxvf libssh2-1.11.0.tar.gz
cd libssh2-1.11.0/
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
make
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
cd ..
@ -97,5 +109,6 @@ cd $BUILD_DIRECTORY
rm -rf expat-*
rm -rf openssl-*
rm -rf libssh2-*
rm -rf libgpg-error*
#
echo "finished!"

View File

@ -17,7 +17,6 @@ PREFIX=/usr/x86_64-w64-mingw32
--prefix=$PREFIX \
--without-included-gettext \
--disable-nls \
--with-libcares \
--without-gnutls \
--without-wintls \
--with-openssl \