From 73fd6f57b6d5c6e7a1f0242016d04d232db58639 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 10 Jan 2014 00:04:43 -0800 Subject: [PATCH] Try (and almost fail) to compile armv6 on -mthumb. --- libffi.sh | 4 ++++ xcode.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/libffi.sh b/libffi.sh index 7d3420d..fa01534 100755 --- a/libffi.sh +++ b/libffi.sh @@ -45,6 +45,10 @@ 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}" make diff --git a/xcode.sh b/xcode.sh index 27019ce..1ad0650 100755 --- a/xcode.sh +++ b/xcode.sh @@ -107,6 +107,7 @@ for arch in armv6 armv7 armv7s arm64; do min=7.0 else min=2.0 + #cpf+=" -mthumb" fi build "ios-${arch}" iphoneos "-arch ${arch} -miphoneos-version-min=${min}" --host=arm-apple-darwin10 \ -- 2.47.2