Skip to content

Commit b8a50ab

Browse files
committed
Set deploy target to ios=5.1.1, osx=10.8.
Build with SDK 10.9.
1 parent 2ef7cc0 commit b8a50ab

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ OpenSSL
33

44
OpenSSL CocoaPod for iOS and OSX. Complete solution to OpenSSL on iOS and OSX. Package came with precompiled libraries, and include script to build newer version if necessary.
55

6-
Current version contains binaries build with SDK iOS 7.0, and SDK OSX 10.8 for all supported architectures.
6+
Current version contains binaries build with SDK iOS 7.0 (target 5.1.1), and SDK OSX 10.9 (target 10.8) for all supported architectures.
77

88
**Architectures**
99

build.sh

+7-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ OPENSSL_VERSION="1.0.1e"
1212
DEVELOPER="/Applications/Xcode.app/Contents/Developer"
1313

1414
IOS_SDK_VERSION="7.0"
15-
OSX_SDK_VERSION="10.8"
15+
IOS_DEPLOYMENT_VERSION="5.1.1"
16+
OSX_SDK_VERSION="10.9"
17+
OSX_DEPLOYMENT_VERSION="10.8"
1618

1719
IPHONEOS_PLATFORM="${DEVELOPER}/Platforms/iPhoneOS.platform"
1820
IPHONEOS_SDK="${IPHONEOS_PLATFORM}/Developer/SDKs/iPhoneOS${IOS_SDK_VERSION}.sdk"
@@ -55,23 +57,23 @@ build()
5557
export CROSS_TOP="${IPHONESIMULATOR_PLATFORM}/Developer"
5658
export CROSS_SDK="iPhoneSimulator${IOS_SDK_VERSION}.sdk"
5759
./Configure iphoneos-cross --openssldir="/tmp/openssl-${OPENSSL_VERSION}-${ARCH}" &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log"
58-
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -miphoneos-version-min=7.0 !" "Makefile"
60+
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -miphoneos-version-min=${IOS_DEPLOYMENT_VERSION} !" "Makefile"
5961
else
6062
# iOS
6163
export CROSS_TOP="${IPHONEOS_PLATFORM}/Developer"
6264
export CROSS_SDK="iPhoneOS${IOS_SDK_VERSION}.sdk"
6365
./Configure iphoneos-cross --openssldir="/tmp/openssl-${OPENSSL_VERSION}-${ARCH}" &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log"
6466
perl -i -pe 's|static volatile sig_atomic_t intr_signal|static volatile int intr_signal|' crypto/ui/ui_openssl.c
65-
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -miphoneos-version-min=7.0 !" "Makefile"
67+
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -miphoneos-version-min=${IOS_DEPLOYMENT_VERSION} !" "Makefile"
6668
fi
6769
else
6870
#OSX
6971
if [ "$ARCH" == "x86_64" ]; then
7072
./Configure darwin64-x86_64-cc --openssldir="/tmp/openssl-${OPENSSL_VERSION}-${ARCH}" &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log"
71-
perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${SDK} \$1|g" Makefile
73+
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${SDK} -mmacosx-version-min=${OSX_DEPLOYMENT_VERSION} !" "Makefile"
7274
elif [ "$ARCH" == "i386" ]; then
7375
./Configure darwin-i386-cc --openssldir="/tmp/openssl-${OPENSSL_VERSION}-${ARCH}" &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log"
74-
perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${SDK} \$1|g" Makefile
76+
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${SDK} -mmacosx-version-min=${OSX_DEPLOYMENT_VERSION} !" "Makefile"
7577
fi
7678
fi
7779

lib-ios/libcrypto.a

-3.26 MB
Binary file not shown.

lib-ios/libssl.a

-578 KB
Binary file not shown.

lib-osx/libcrypto.a

184 Bytes
Binary file not shown.

lib-osx/libssl.a

816 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)