0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

Get PolarSSL-based client and test builds working on Linux again.

This commit is contained in:
James Yonan 2012-11-26 18:53:12 +00:00
parent e51e5421cf
commit 5ea06010c5
5 changed files with 24 additions and 7 deletions

View File

@ -41,7 +41,8 @@ if [ "$NO_WIPE" = "1" ]; then
else
echo WIPE and reunzip source
rm -rf $POLARSSL_VERSION
tar xfz ~/Downloads/$POLARSSL_VERSION-gpl.tgz
[ -z "$DL" ] && DL=~/Downloads
tar xfz $DL/$POLARSSL_VERSION-gpl.tgz
cd $POLARSSL_VERSION
@ -112,6 +113,9 @@ if [ "$ENABLE_SERVER" = "1" ]; then
OPT="$OPT -DENABLE_SERVER=1"
fi
# Build shared library (fixme)
OPT="$OPT -DUSE_SHARED_POLARSSL_LIBRARY=1"
# echo options
echo OPTIONS $OPT

View File

@ -105,7 +105,9 @@ if [ "$APPLE_FAMILY" = "1" ]; then
fi
LIBS="$LIBS -framework Security"
else
if [ "$NOSSL" != "1" ]; then
if [ "$OPENSSL_LINK" = "1" ]; then
LIBS="$LIBS -lcrypto -lssl"
elif [ "$NOSSL" != "1" ]; then
CPPFLAGS="$CPPFLAGS -DUSE_OPENSSL"
LIBS="$LIBS -lssl -lcrypto -ldl"
fi

5
scripts/linux/build-polarssl Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
rm -rf polarssl
mkdir polarssl
VERBOSE=1 TARGET=linux USE_MINICRYPTO=1 ENABLE_SERVER=1 SHARED=1 $O3/polarssl/build-polarssl
mv polarssl-linux polarssl

View File

@ -1,7 +1,9 @@
#!/usr/bin/env bash
rm -rf so
mkdir so
cp boost/stage-linux/lib/lib* so/
cp lzo/lzo-linux/lib/lib* so/
cp openssl/openssl-linux/lib/lib* so/
cp snappy/snappy-linux/lib/lib* so/
OPT=-d
cp $OPT boost/stage-linux/lib/lib* so/
cp $OPT lzo/lzo-linux/lib/lib* so/
cp $OPT openssl/openssl-linux/lib/lib* so/
cp $OPT snappy/snappy-linux/lib/lib* so/
cp $OPT polarssl/polarssl-linux/library/lib* so/

View File

@ -4,4 +4,8 @@ Build on Mac:
Build on Linux:
STRIP=1 SNAP=1 build cli
With OpenSSL:
STRIP=1 SNAP=1 build cli
With PolarSSL:
STRIP=1 SNAP=1 PSSL=1 OPENSSL_LINK=1 build cli