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:
parent
4de29ffcd9
commit
fb2a6d71c8
|
@ -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…
Reference in New Issue
Block a user