I used to use the following script to cross compile a number of C projects, including Flite. I was hoping to revisit some of my work, and update some projects to create a new cross-platform app, using a 'universal' C library.
This is the script I used to use (slightly modified to support whatever project I was working on):
The meat of it is this:
unset CPPFLAGS CFLAGS LDFLAGS CPP CXX CC CXXFLAGS DEVROOT SDKROOT LD
export CFLAGS="-arch armv6 -pipe -no-cpp-precomp -isysroot $SDKROOT -miphoneos-version-min=5.0 -I$SDKROOT/usr/include/"
Now, since I worked on this stuff, the compiler used is no longer just GCC - it's clang, and I've not been able to find a good example that I can make work.
Can anyone help me out with an updated script/clang examples that they know work for cross compiling to iOS, so I don't keep bumping into dead ends?
Note: I don't care about a 'fat' library containing all rule-sets, at least not that much. I really just want to make sure I'm compiling the ARM libraries correctly for use. I'll look into the fat library after I get that part working.
Thanks for any help!