diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-03-04 16:24:38 -0800 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-03-04 16:24:38 -0800 |
commit | 75317d808898988bf3382368580c395c85b4f018 (patch) | |
tree | 9b5671265bb5b79a402d82af6a2325e42316b70b /build-mac | |
parent | 3c676c3b3f358a32de72025c80192a4eba9d5723 (diff) |
Add additional linker flags to the documentation
Diffstat (limited to 'build-mac')
-rw-r--r-- | build-mac/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-mac/README.md b/build-mac/README.md index 2d3c9f8a..1b993e00 100644 --- a/build-mac/README.md +++ b/build-mac/README.md @@ -35,14 +35,14 @@ Download the latest [build for OS X](http://d.etpan.org/mailcore2-deps/mailcore2 - Click the `+` icon and select `MailCore.framework`. * Mac static library - Go to Build Phases from your build target, and under 'Link Binary With Libraries', add `libMailCore.a` and `Security.framework`. - - Set 'Other Linker Flags' under Build Settings: `-lctemplate -letpan -lxml2 -lsasl2 -liconv -ltidy -lz` `-lc++ -stdlib=libc++ -ObjC -lcrypto -lssl` + - Set 'Other Linker Flags' under Build Settings: `-lctemplate -letpan -lxml2 -lsasl2 -liconv -ltidy -lz` `-lc++ -stdlib=libc++ -ObjC -lcrypto -lssl -lresolv` - Make sure to use LLVM C++ standard library. In Build Settings, locate 'C++ Standard Library', and select `libc++`. - In Build Phases, add a Target Dependency of `static mailcore2 osx`. 5. **For iOS** - If you're targeting iOS, you have to link against MailCore 2 as a static library: * Add `libMailCore-ios.a` * Add `CFNetwork.framework` * Add `Security.framework` - * Set 'Other Linker Flags': `-lctemplate-ios -letpan-ios -lxml2 -lsasl2 -liconv -ltidy -lz` `-lc++ -stdlib=libc++ -ObjC` + * Set 'Other Linker Flags': `-lctemplate-ios -letpan-ios -lxml2 -lsasl2 -liconv -ltidy -lz` `-lc++ -lresolv -stdlib=libc++ -ObjC` * Make sure to use LLVM C++ standard library. Open Build Settings, scroll down to 'C++ Standard Library', and select `libc++`. * In Build Phases, add a Target Dependency of `static mailcore2 ios`. 6. **For Swift** - If you are using Mailcore in a Swift project you also need to complete the following steps: |