From 75317d808898988bf3382368580c395c85b4f018 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Wed, 4 Mar 2015 16:24:38 -0800 Subject: Add additional linker flags to the documentation --- build-mac/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-mac') 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: -- cgit v1.2.3