GnuTLS 3.1.* build scripts for iPhoneOS and iPhoneSimulator using official XCode toolchain and SDK from Apple. Please read all this readme before you start.
Result files will be in created lib/ and include/ directories for i386 and armv7 architectures. To use those libraries, include the library from lib/ directory and headers from include/.
If you have any problem don't hesitate to contact to me.
I couldn't compile 3.2.* version (tested 3.2.8) of GnuTLS because (I think) it needs special pkg-config binaries to find Nettle library.
Under LICENSE file
Build scripts will create in current folder with additional structure:
- eg: Locate C compiler for iPhoneOS:
xcrun find -sdk iphoneos cc
- eg: Merge libraries with different architectures into one universal file:
lipo -create usr.i386/lib/libgmp.a usr.armv7/lib/libgmp.a -output lib/libgmp.a
- eg: Print actual architecture:
uname -m
Really helpful build scripts, for older version of GnuTLS:
Cross-Compiling information:
Information about NEON instruction set: