Line align to 1.0.1i

This commit is contained in:
Bochun Bai 2014-09-30 12:03:07 -07:00
parent 9230a21280
commit 2505f1f503
2 changed files with 31 additions and 16 deletions

View file

@ -31,6 +31,7 @@ function build_for ()
function pack_for () function pack_for ()
{ {
LIBNAME=$1 LIBNAME=$1
mkdir -p ${TMP_DIR}/lib/
${DEVROOT}/usr/bin/lipo \ ${DEVROOT}/usr/bin/lipo \
-arch i386 ${TMP_DIR}/i386/lib/lib${LIBNAME}.a \ -arch i386 ${TMP_DIR}/i386/lib/lib${LIBNAME}.a \
-arch x86_64 ${TMP_DIR}/x86_64/lib/lib${LIBNAME}.a \ -arch x86_64 ${TMP_DIR}/x86_64/lib/lib${LIBNAME}.a \
@ -53,10 +54,10 @@ pack_for ssl || exit 6
pack_for crypto || exit 7 pack_for crypto || exit 7
cp -r ${TMP_DIR}/armv7s/include ${TMP_DIR}/ cp -r ${TMP_DIR}/armv7s/include ${TMP_DIR}/
sed -i.old -e "90,96d" ${TMP_DIR}/include/openssl/opensslconf.h sed -i.old -e "96,102d" ${TMP_DIR}/include/openssl/opensslconf.h
rm -f ${TMP_DIR}/include/openssl/opensslconf.h.old rm -f ${TMP_DIR}/include/openssl/opensslconf.h.old
curl -O https://raw.githubusercontent.com/sinofool/build-openssl-ios/master/patch-include.patch curl -O https://raw.githubusercontent.com/sinofool/build-openssl-ios/master/patch-include.patch
patch ${TMP_DIR}/include/openssl/opensslconf.h < patch-include.patch patch -p3 ${TMP_DIR}/include/openssl/opensslconf.h < patch-include.patch
DIST_DIR=${HOME}/Desktop/openssl-ios-dist/ DIST_DIR=${HOME}/Desktop/openssl-ios-dist/
rm -rf ${DIST_DIR} rm -rf ${DIST_DIR}

View file

@ -1,14 +1,28 @@
137a138,140 --- armv7s/include/openssl/opensslconf.h 2014-09-30 11:49:06.000000000 -0700
> #if defined(__LP64__) +++ openssl-ios-dist/include/openssl/opensslconf.h 2014-09-30 11:58:34.000000000 -0700
> #undef BN_LLONG @@ -142,15 +142,25 @@
> #else
138a142 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
> #endif #define CONFIG_HEADER_BN_H
142a147,151 +#ifdef __LP64__
> #if defined(__LP64__) +#undef BN_LLONG
> #define SIXTY_FOUR_BIT_LONG +#else
> #undef SIXTY_FOUR_BIT #define BN_LLONG
> #undef THIRTY_TWO_BIT +#endif
> #else
146a156 /* Should we define BN_DIV2W here? */
> #endif
/* Only one for the following should be defined */
+#ifdef __LP64__
+#define SIXTY_FOUR_BIT_LONG
+#undef SIXTY_FOUR_BIT
+#undef THIRTY_TWO_BIT
+#else
#undef SIXTY_FOUR_BIT_LONG
#undef SIXTY_FOUR_BIT
#define THIRTY_TWO_BIT
#endif
+#endif
#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
#define CONFIG_HEADER_RC4_LOCL_H