]> git.saurik.com Git - cycript.git/blobdiff - libffi.sh
Support casting any pointer to a function type.
[cycript.git] / libffi.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