diff --git a/build_openssl_dist.sh b/build_openssl_dist.sh index 3a94d50..8bc2dcd 100755 --- a/build_openssl_dist.sh +++ b/build_openssl_dist.sh @@ -59,8 +59,8 @@ rm -f ${TMP_DIR}/include/openssl/opensslconf.h.old curl -O https://raw.githubusercontent.com/sinofool/build-openssl-ios/master/patch-include.patch patch -p3 ${TMP_DIR}/include/openssl/opensslconf.h < patch-include.patch -DIST_DIR=${HOME}/Desktop/openssl-ios-dist/ -rm -rf ${DIST_DIR} -mkdir ${DIST_DIR} +DFT_DIST_DIR=${HOME}/Desktop/openssl-ios-dist/ +DIST_DIR=${DIST_DIR:-DFT_DIST_DIR} +mkdir -p ${DIST_DIR} cp -r ${TMP_DIR}/include ${TMP_DIR}/lib ${DIST_DIR} diff --git a/patch-include.patch b/patch-include.patch index 1e04ece..aa65108 100644 --- a/patch-include.patch +++ b/patch-include.patch @@ -1,6 +1,6 @@ --- armv7s/include/openssl/opensslconf.h 2014-09-30 11:49:06.000000000 -0700 +++ openssl-ios-dist/include/openssl/opensslconf.h 2014-09-30 11:58:34.000000000 -0700 -@@ -142,15 +142,25 @@ +@@ -156,15 +156,25 @@ #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) #define CONFIG_HEADER_BN_H