File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,24 +5,24 @@ This script will generate static library for armv7s arm64 and x86_64.
55New Xcode7 bitcode feature supported.
66
77Script only, please download openssl from here: http://www.openssl.org/source/
8- Tested Xcode 8 and macOS 12
9- Tested openssl 1.1.0c
8+ Tested Xcode 10 and macOS 10.13
9+ Tested openssl 1.1.1
1010For 1.0.x version, please check branch 1.0.x
1111
1212
1313Usage
1414=================
1515Copy the following lines to your Terminal.app
1616```
17- curl -O http://www.openssl.org/source/openssl-1.0.2d .tar.gz
18- tar xf openssl-1.0.2d .tar.gz
19- cd openssl-1.0.2d
17+ curl -O http://www.openssl.org/source/openssl-1.1.1 .tar.gz
18+ tar xf openssl-1.1.1 .tar.gz
19+ cd openssl-1.1.1
2020curl https://raw.githubusercontent.com/sinofool/build-openssl-ios/master/build_openssl_dist.sh |bash
2121```
2222Find the result folder openssl-ios-dist on your desktop.
2323
2424
25- Binary
25+ Binary (old 1.0.2c)
2626=================
2727You can find a prebuild binary here: https://sinofool.net/dl/openssl-ios-dist.tar.bz2
2828
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function build_for ()
2020
2121 export CROSS_TOP=" ${! CROSS_TOP_ENV} "
2222 export CROSS_SDK=" ${! CROSS_SDK_ENV} "
23- ./Configure $PLATFORM " -arch $ARCH -fembed-bitcode" no-asm no-ssl3 no-comp no-hw no-engine --prefix=${TMP_DIR} /${ARCH} || exit 1
23+ ./Configure $PLATFORM " -arch $ARCH -fembed-bitcode" no-asm no-ssl3 no-comp no-hw no-engine no-async --prefix=${TMP_DIR} /${ARCH} || exit 1
2424 # problem of concurrent build; make -j8
2525 make && make install_sw || exit 2
2626 unset CROSS_TOP
@@ -39,7 +39,7 @@ function pack_for ()
3939}
4040
4141curl -O https://raw.githubusercontent.com/sinofool/build-openssl-ios/master/patch-conf.patch
42- # cp ../build-openssl-ios/ patch-conf.patch .
42+ # cp ../patch-conf.patch .
4343patch Configurations/10-main.conf < patch-conf.patch
4444
4545build_for ios64sim-cross x86_64 SIM || exit 2
Original file line number Diff line number Diff line change 1- 1630a1631,1637
1+ 1636a1637,1643
22> "ios64sim-cross" => {
33> inherit_from => [ "darwin-common", asm("no_asm") ],
44> cflags => add("-arch x86_64 -DOPENSSL_NO_ASM -mios-version-min=7.0.0 -isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fno-common"),
You can’t perform that action at this time.
0 commit comments