CC= /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -arch i386
CFLAG= -DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
参考:
http://x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/
本文介绍如何在 iOS 应用中集成 OpenSSL 1.0.0a 版本库,并提供详细的编译配置参数,包括 CC 和 CFLAG 的设置。同时解决在 iPhone 模拟器上构建但链接 macOS dylib 文件的问题。
2370

被折叠的 条评论
为什么被折叠?



