From e9b51ae0c4a83549928672322ccb9948ab2c8968 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 9 Jan 2014 22:51:47 -0800 Subject: [PATCH] Use -mllvm -arm-reserve-r9 to support iOS 2.x. --- libffi.sh | 4 ++-- xcode.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libffi.sh b/libffi.sh index 1d13f9b..7d3420d 100755 --- a/libffi.sh +++ b/libffi.sh @@ -46,12 +46,12 @@ function arch() { flags+=(-O3 -g3) cd "libffi.${arch}" - CC="clang -arch ${arch}" CFLAGS="${flags[*]}" CPPFLAGS="${flags[*]}" ../libffi/configure --host="${host}" + CC="clang -arch ${arch}" CFLAGS="${flags[*]}" CPPFLAGS="${flags[*]} $*" ../libffi/configure --host="${host}" make cd .. } -arch armv6 arm-apple-darwin10 iphoneos iphoneos 2.0 +arch armv6 arm-apple-darwin10 iphoneos iphoneos 2.0 -mllvm -arm-reserve-r9 arch armv7 arm-apple-darwin10 iphoneos iphoneos 2.0 arch armv7s arm-apple-darwin10 iphoneos iphoneos 2.0 arch arm64 aarch64-apple-darwin11 iphoneos iphoneos 2.0 diff --git a/xcode.sh b/xcode.sh index d901f48..27019ce 100755 --- a/xcode.sh +++ b/xcode.sh @@ -98,6 +98,7 @@ for arch in armv6 armv7 armv7s arm64; do else flg+=(LTLIBAPR="../sysroot.ios/usr/lib/libapr-1.dylib") 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 -- 2.49.0