Merge pull request #9 from guillaumealgis/patch-1

Fix code fencing in README.md
This commit is contained in:
Bochun Bai 2017-02-14 18:06:55 -08:00 committed by GitHub
commit 18b657c372

View file

@ -21,28 +21,33 @@ The fix have commited to curl just one day after release, which should be avalia
Workaround for this issue is: Workaround for this issue is:
- patch it with the commit (See darwinssl-fix-iOS-build.patch extacted) - patch it with the commit (See darwinssl-fix-iOS-build.patch extacted)
- Or, use openssl with: ``` - Or, use openssl with:
```bash
../build_libcurl_dist.sh openssl ../build_libcurl_dist.sh openssl
``` ```
Usage Usage
================= =================
```
```bash
curl -O http://curl.haxx.se/download/curl-7.52.1.tar.gz curl -O http://curl.haxx.se/download/curl-7.52.1.tar.gz
tar xf curl-7.52.1.tar.gz tar xf curl-7.52.1.tar.gz
cd curl-7.52.1 cd curl-7.52.1
curl -O https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/darwinssl-fix-iOS-build.patch curl -O https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/darwinssl-fix-iOS-build.patch
patch -p1 < darwinssl-fix-iOS-build.patch patch -p1 < darwinssl-fix-iOS-build.patch
curl https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/build_libcurl_dist.sh |bash curl https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/build_libcurl_dist.sh | bash
...... ......
``` ```
Find the result libcurl-ios-dist on your desktop. Find the result libcurl-ios-dist on your desktop.
OpenSSL OpenSSL
================= =================
The script link with native ssl by default (--with-darwinssl). The script link with native ssl by default (--with-darwinssl).
To use OpenSSL, use https://github.com/sinofool/build-openssl-ios/ to build OpenSSL for iOS first, in curl source directory run: To use OpenSSL, use https://github.com/sinofool/build-openssl-ios/ to build OpenSSL for iOS first, in curl source directory run:
```
```bash
curl https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/build_libcurl_dist.sh openssl |bash curl https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/build_libcurl_dist.sh openssl |bash
``` ```
@ -53,6 +58,7 @@ Following binary is curl-7.47.1, I will release 7.52.1 binaries after a longer t
You can find a prebuild binary (with OpenSSL) here: https://sinofool.net/dl/libcurl-ios-dist.tar.bz2 You can find a prebuild binary (with OpenSSL) here: https://sinofool.net/dl/libcurl-ios-dist.tar.bz2
Double check the binary file before use: Double check the binary file before use:
``` ```
SHA1: SHA1:
993c9bb75d798a886749e7801d5f54c494dbf6fb libcurl-ios-dist.tar.bz2 993c9bb75d798a886749e7801d5f54c494dbf6fb libcurl-ios-dist.tar.bz2