X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/7c087cd2b012a076eb408ece28ed06781c64b464..e7ff015817107dbac9373c19ce851178e4f3c791:/libffi.sh diff --git a/libffi.sh b/libffi.sh index 1d13f9b..fa01534 100755 --- a/libffi.sh +++ b/libffi.sh @@ -45,13 +45,17 @@ function arch() { flags+=(-fno-stack-protector) flags+=(-O3 -g3) + if [[ ${arch} == arm* && ${arch} != arm64 ]]; then + flags+=(-mthumb) + fi + 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