for arch in i386 x86_64; do
build "sim-${arch}" iphonesimulator "-arch ${arch} -mios-simulator-version-min=4.0" \
OBJCXXFLAGS="-fobjc-abi-version=2 -fobjc-legacy-dispatch" \
for arch in i386 x86_64; do
build "sim-${arch}" iphonesimulator "-arch ${arch} -mios-simulator-version-min=4.0" \
OBJCXXFLAGS="-fobjc-abi-version=2 -fobjc-legacy-dispatch" \
- flg+=(LTLIBGCC="-lgcc_s.1") #-L${xcs}/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/lib/gcc/arm-apple-darwin10/4.2.1/v6 -lgcc_eh")
+ flg+=(LTLIBGCC="-lgcc_s.1")
+ cpf+=" -include ${PWD}/xcode.h"
+ cpf+=" -mllvm -arm-reserve-r9"
cpf+=" -I../sysroot.ios/usr/include -I../sysroot.ios/usr/include/apr-1"
ldf+=" -L../sysroot.ios/usr/lib"
fi
cpf+=" -I../sysroot.ios/usr/include -I../sysroot.ios/usr/include/apr-1"
ldf+=" -L../sysroot.ios/usr/lib"
fi