From ddf78cfbbae707a8d4116b745704ca787b63627e Mon Sep 17 00:00:00 2001 From: Richard Larkin Date: Fri, 2 May 2014 10:46:15 +0200 Subject: [PATCH] Added copying of built binaries --- tools/build-openssl.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tools/build-openssl.sh b/tools/build-openssl.sh index 075d82f..3d65b0e 100755 --- a/tools/build-openssl.sh +++ b/tools/build-openssl.sh @@ -15,13 +15,17 @@ if [ ! -d $TMPROOT/openssl/ios-openssl ] ; then fi # Build the required binaries -if [ -d $TMPROOT/openssl/ios-openssl ] ; then - try pushd . - cd $TMPROOT/openssl/ios-openssl - sh build.sh - try popd +if [ $TMPROOT/openssl/ios-openssl ] ; then + if [ ! $TMPROOT/openssl/ios-openssl/lib/libssl.a ] ; then + try pushd . + cd $TMPROOT/openssl/ios-openssl + sh build.sh + try popd + fi fi -# copy to buildroot -#cp $TMPROOT/SDL_ttf-$SDLTTF_VERSION/.libs/libSDL_ttf.a $BUILDROOT/lib/libSDL_ttf.a -#cp -a $TMPROOT/SDL_ttf-$SDLTTF_VERSION/SDL_ttf.h $BUILDROOT/include +# Copy the binaries to the appropriate places. +if [ $TMPROOT/openssl/ios-openssl/lib/libssl.a ] ; then + cp $TMPROOT/openssl/ios-openssl/lib/libssl.a $BUILDROOT/lib/libssl.a + cp $TMPROOT/openssl/ios-openssl/lib/libcrypto.a $BUILDROOT/lib/libcrypto.a +fi