]> git.saurik.com Git - cycript.git/commitdiff
Try (and almost fail) to compile armv6 on -mthumb.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 10 Jan 2014 08:04:43 +0000 (00:04 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 10 Jan 2014 08:05:00 +0000 (00:05 -0800)
libffi.sh
xcode.sh

index 7d3420db6496c517520757c9286c412ed5a5433a..fa01534cc3bb60f94fe99675c7988acaac19e128 100755 (executable)
--- 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
index 27019cec1e2d213c11bccd74d6efd2395c9f250b..1ad065029b0c986d56022d74d0a704fbe82c6184 100755 (executable)
--- 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 \