I have an older iPhoneOS 5.0 SDK installed on my system. I am sure that you can work with a newer version too. The following script successfully compiled Jansson for me:
export CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang"
export CPP="clang -E"
export SDKPATH="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk"
export CFLAGS="-arch armv7 -isysroot ${SDKPATH} -miphoneos-version-min=5.0"
export LDFLAGS="-isysroot ${SDKPATH}"
./configure --host=arm-apple-darwin10
make
The result is a library that I did not test, but file
returns an arm architecture library:
$ file src/.libs/libjansson.4.dylib
src/.libs/libjansson.4.dylib: Mach-O dynamically linked shared library arm
Adjust SDKPATH
and -miphoneos-version-min=5.0
appropriately for the SDK that you have installed.