mirror of https://github.com/OpenVPN/openvpn-gui
parent
886685528f
commit
9625d6f3c6
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
if [ ! -d download-cache ]; then mkdir download-cache; fi
|
||||
if [ ! -f download-cache/openssl-${OPENSSL_VERSION}.tar.gz ]; then wget -O download-cache/openssl-${OPENSSL_VERSION}.tar.gz https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz; fi
|
||||
|
||||
mkdir image
|
||||
tar zxf download-cache/openssl-${OPENSSL_VERSION}.tar.gz && cd openssl-${OPENSSL_VERSION}
|
||||
if [ "$CHOST" == "i686-w64-mingw32" ]; then export target=mingw; fi
|
||||
if [ "$CHOST" == "x86_64-w64-mingw32" ]; then export target=mingw64; fi
|
||||
./Configure --prefix=/ --cross-compile-prefix=${CHOST}- shared $target no-multilib no-capieng --openssldir=/etc/ssl --libdir=/lib -static-libgcc >build.log 2>&1 || (cat build.log && exit 1)
|
||||
make install INSTALL_PREFIX="${HOME}/image" INSTALLTOP="/" MANDIR="/tmp" >build.log 2>&1 || (cat build.log && exit 1)
|
||||
cd ..
|
||||
|
||||
export OPENSSL_CRYPTO_CFLAGS="-I${HOME}/image/include"
|
||||
export OPENSSL_CRYPTO_LIBS="-L${HOME}/image/lib -lcrypto"
|
||||
|
Loading…
Reference in new issue