From: Jay Freeman (saurik) Date: Fri, 10 Jan 2014 08:04:43 +0000 (-0800) Subject: Try (and almost fail) to compile armv6 on -mthumb. X-Git-Tag: v0.9.500~81 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/73fd6f57b6d5c6e7a1f0242016d04d232db58639 Try (and almost fail) to compile armv6 on -mthumb. --- 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 \