From: Jay Freeman (saurik) Date: Tue, 31 Dec 2013 23:37:45 +0000 (-0800) Subject: Compile libffi for iOS 7 ARM64 using the Xcode 5. X-Git-Tag: v0.9.500~131 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/f00bbc8e76b9b599a0795ca56b7d77c32773b592 Compile libffi for iOS 7 ARM64 using the Xcode 5. --- diff --git a/libffi b/libffi index 0f8690a..356b2cb 160000 --- a/libffi +++ b/libffi @@ -1 +1 @@ -Subproject commit 0f8690a84c874ec09a090c8c6adfb93c594acac6 +Subproject commit 356b2cbc304bfe5bdc28b8d1c68d1ff084e9ec37 diff --git a/libffi.sh b/libffi.sh index b9a666f..ca443b3 100755 --- a/libffi.sh +++ b/libffi.sh @@ -27,7 +27,8 @@ function arch() { local host=$2 local sdk=$3 local os=$4 - shift 4 + local min=$5 + shift 5 rm -rf "libffi.${arch}" if ! isysroot=$(xcodebuild -sdk "${sdk}" -version Path); then @@ -37,16 +38,19 @@ function arch() { archs+=("${arch}") mkdir "libffi.${arch}" + flags="-isysroot ${isysroot} -m${os}-version-min=${min}" + cd "libffi.${arch}" - CC="clang -arch ${arch}" CFLAGS="-no-integrated-as -isysroot ${isysroot} -m${os}-version-min=2.0" ../libffi/configure --host="${host}" + CC="clang -arch ${arch}" CFLAGS="-no-integrated-as ${flags}" CPPFLAGS="${flags}" ../libffi/configure --host="${host}" make cd .. } -arch armv6 arm-apple-darwin10 iphoneos5.1 iphoneos -arch armv7 arm-apple-darwin10 iphoneos iphoneos -arch armv7s arm-apple-darwin10 iphoneos iphoneos -arch i386 i386-apple-darwin10 iphonesimulator ios-simulator +arch armv6 arm-apple-darwin10 iphoneos iphoneos 2.0 +arch armv7 arm-apple-darwin10 iphoneos iphoneos 2.0 +arch armv7s arm-apple-darwin10 iphoneos iphoneos 2.0 +arch arm64 aarch64-apple-darwin10 iphoneos iphoneos 2.0 +arch i386 i386-apple-darwin10 iphonesimulator ios-simulator 4.0 libffi=() for arch in "${archs[@]}"; do