mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
iOS build: make it possible to compile openssl
It compiles but the link stage fails because of a missing -LSystem but its a baby step. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
813e49d202
commit
63b01b7510
1 changed files with 24 additions and 25 deletions
|
@ -127,30 +127,29 @@ if [ ! -e $PKG_CONFIG_LIBDIR/libzip.pc ] ; then
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if [ ! -e openssl-${OPENSSL_VERSION}.tar.gz ] ; then
|
if [ ! -e openssl-${OPENSSL_VERSION}.tar.gz ] ; then
|
||||||
# wget -O openssl-${OPENSSL_VERSION}.tar.gz http://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
|
wget -O openssl-${OPENSSL_VERSION}.tar.gz http://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
|
||||||
# fi
|
fi
|
||||||
# if [ ! -e openssl-build-$ARCH ] ; then
|
if [ ! -e openssl-build-$ARCH ] ; then
|
||||||
# tar -zxf openssl-${OPENSSL_VERSION}.tar.gz
|
tar -zxf openssl-${OPENSSL_VERSION}.tar.gz
|
||||||
# mv openssl-${OPENSSL_VERSION} openssl-build-$ARCH
|
mv openssl-${OPENSSL_VERSION} openssl-build-$ARCH
|
||||||
# fi
|
fi
|
||||||
# if [ ! -e $PKG_CONFIG_LIBDIR/libssl.pc ] ; then
|
if [ ! -e $PKG_CONFIG_LIBDIR/libssl.pc ] ; then
|
||||||
# pushd openssl-build-$ARCH
|
pushd openssl-build-$ARCH
|
||||||
# perl -pi -e 's/install: all install_docs install_sw/install: install_docs install_sw/g' Makefile.org
|
perl -pi -e 's/install: all install_docs install_sw/install: install_docs install_sw/g' Makefile.org
|
||||||
# # Use env to make all these temporary, so they don't pollute later builds.
|
if [[ "${ARCH}" != "i386" && "${ARCH}" != "x86_64" ]]; then
|
||||||
# env SYSTEM=android \
|
sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c"
|
||||||
# CROSS_COMPILE="${BUILDCHAIN}-" \
|
fi
|
||||||
# MACHINE=$OPENSSL_MACHINE \
|
./Configure iphoneos-cross --openssldir="/tmp/$PREFIX"
|
||||||
# HOSTCC=gcc \
|
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${BUILDCHAIN} -miphoneos-version-min=${SDKVERSION} !" "Makefile"
|
||||||
# CC=gcc \
|
# Use env to make all these temporary, so they don't pollute later builds.
|
||||||
# ANDROID_DEV=$PREFIX \
|
|
||||||
# bash -x ./config shared no-ssl2 no-ssl3 no-comp no-hw no-engine --openssldir=$PREFIX
|
# bash -x ./config shared no-ssl2 no-ssl3 no-comp no-hw no-engine --openssldir=$PREFIX
|
||||||
# make depend
|
make depend
|
||||||
# make
|
make
|
||||||
# make install
|
make install
|
||||||
# popd
|
popd
|
||||||
# fi
|
fi
|
||||||
#
|
|
||||||
# if [ ! -e libssh2-${LIBSSH2_VERSION}.tar.gz ] ; then
|
# if [ ! -e libssh2-${LIBSSH2_VERSION}.tar.gz ] ; then
|
||||||
# wget http://www.libssh2.org/download/libssh2-${LIBSSH2_VERSION}.tar.gz
|
# wget http://www.libssh2.org/download/libssh2-${LIBSSH2_VERSION}.tar.gz
|
||||||
# fi
|
# fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue