Skip to content

Commit 26dfa01

Browse files
authored
Merge pull request leenjewel#47 from dourgulf/master
update readme
2 parents 594a318 + 323beb0 commit 26dfa01

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,28 @@ Thanks for [https://stackoverflow.com/questions/52717228/how-to-compile-openssl-
6161

6262
Copy `openssl-1.1.0f.tar.gz` to `tools` file folder and run
6363

64-
```
64+
```shell
6565
cd tools
6666
sh ./build-openssl4ios.sh
6767
```
6868

6969
Copy `curl-7.53.1.tar.gz` to `tools` file folder and run
7070

71-
```
71+
```shell
7272
cd tools
7373
sh ./build-curl4ios.sh
7474
```
7575

76+
### Special things about building i386 architecture on Mojave
77+
78+
If you build `i386` failed for link error on Mojave (macOS 10.14+).
79+
80+
Try to intall the header package of macOS 10.14:
81+
82+
```shell
83+
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
84+
```
85+
7686
### For Android
7787

7888
Set ENV `NDK_ROOT`

tools/build-openssl4ios.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ PLATFORMS=("iPhoneOS" "iPhoneOS" "iPhoneOS" "iPhoneSimulator" "iPhoneSimulator")
3737
DEVELOPER=`xcode-select -print-path`
3838
SDK_VERSION=`xcrun -sdk iphoneos --show-sdk-version`
3939
rm -rf "${HEADER_DEST_DIR}" "${LIB_DEST_DIR}" "${LIB_NAME}"
40-
[ -f "${LIB_NAME}.tar.gz" ] || wget https://www.openssl.org/source/${LIB_NAME}.tar.gz;
40+
[ -f "${LIB_NAME}.tar.gz" ] || curl https://www.openssl.org/source/${LIB_NAME}.tar.gz > ${LIB_NAME}.tar.gz
4141

4242
# Unarchive library, then configure and make for specified architectures
4343
configure_make()
@@ -112,5 +112,4 @@ create_lib()
112112
}
113113
mkdir "${LIB_DEST_DIR}";
114114
create_lib "libcrypto.a" "${LIB_DEST_DIR}/libcrypto.a"
115-
create_lib "libssl.a" "${LIB_DEST_DIR}/libssl.a"
116-
115+
create_lib "libssl.a" "${LIB_DEST_DIR}/libssl.a"

0 commit comments

Comments
 (0)