flg+=(--disable-console)
else
flg+=(LTLIBAPR="../sysroot.ios/usr/lib/libapr-1.dylib")
- 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+=" -mllvm -arm-reserve-r9"
cpf+=" -I../sysroot.ios/usr/include -I../sysroot.ios/usr/include/apr-1"
ldf+=" -L../sysroot.ios/usr/lib"
fi
- build "ios-${arch}" iphoneos "-arch ${arch} -miphoneos-version-min=2.0" --host=arm-apple-darwin10 \
+ if [[ ${arch} == arm64 ]]; then
+ min=7.0
+ else
+ min=2.0
+ #cpf+=" -mthumb"
+ fi
+
+ build "ios-${arch}" iphoneos "-arch ${arch} -miphoneos-version-min=${min}" --host=arm-apple-darwin10 \
CPPFLAGS="${cpf}" LDFLAGS="${ldf}" "${flg[@]}" --host=arm-apple-darwin10
done