I have a project referenced to libSSL.a in xcode 5,so I try to build it myself.
error message of make
command is this:
What I have done:
1, Download and install Command Line Tools (download from here)
2, Download source code from openssl.net ,4509212 Jan 6 15:39:19 2014 openssl-1.0.1f.tar.gz (MD5) (SHA1) (PGP sign) [LATEST]
3, Change file crypto/ui/ui_openssl.c
from static volatile sig_atomic_t intr_signal;
to static volatile int intr_signal;
4, Make Dirs with command:
mkdir ssllibs
cd openssl-1.0.0a
mkdir openssl_armv6 openssl_armv7 openssl_i386
5, Configure:
./configure BSD-generic32 --openssldir=/Users/ccnyou/openssl-1.0.0a/openssl_i386
6, Edit Makefile
, CC= gcc
to CC= gcc -arch i386
7, Add this after CFLAG
-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk
(may be wrong here)
8, make
, just get error messages like I mentioned above.
I wonder if it is the clangs and ar's compatibilty problems ? How to build libssl.a ? I'll be appreciated to anyone who give me suggestions for it.