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:
Tomaz Canabrava 2015-12-20 18:05:52 -02:00 committed by Dirk Hohndel
parent 813e49d202
commit 63b01b7510

View file

@ -100,7 +100,7 @@ if [ ! -e libxslt-${LIBXSLT_VERSION}.tar.gz ] ; then
fi fi
if [ ! -e libxslt-${LIBXSLT_VERSION} ] ; then if [ ! -e libxslt-${LIBXSLT_VERSION} ] ; then
tar -zxf libxslt-${LIBXSLT_VERSION}.tar.gz tar -zxf libxslt-${LIBXSLT_VERSION}.tar.gz
# libxslt have too old config.sub # libxslt have too old config.sub
cp libxml2-${LIBXML2_VERSION}/config.sub libxslt-${LIBXSLT_VERSION} cp libxml2-${LIBXML2_VERSION}/config.sub libxslt-${LIBXSLT_VERSION}
fi fi
if [ ! -e $PKG_CONFIG_LIBDIR/libxslt.pc ] ; then if [ ! -e $PKG_CONFIG_LIBDIR/libxslt.pc ] ; then
@ -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