]> git.saurik.com Git - cycript.git/commitdiff
Try harder to use trampoline tables (for iOS 9.0).
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 11 Nov 2015 00:24:16 +0000 (16:24 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 11 Nov 2015 00:24:16 +0000 (16:24 -0800)
apple-libffi.sh
libffi

index 4c99e1cb086bd9369dfb0f067bd744cd0e052102..c20b5ba689d09d68890758e6eaeaeb4a37a7eba5 100755 (executable)
@@ -41,7 +41,7 @@ function arch() {
     flags=()
     flags+=(-isysroot "${isysroot}")
     flags+=(-m${os}-version-min="${min}")
-    flags+=(-no-integrated-as)
+    flags+=(-DPAGE_MAX_SIZE=16384 -DPAGE_MAX_SHIFT=14)
     flags+=(-fno-stack-protector)
     flags+=(-O3 -g3)
 
@@ -50,7 +50,7 @@ function arch() {
     fi
 
     cd "libffi.${arch}"
-    CC="clang -arch ${arch}" CFLAGS="${flags[*]}" CPPFLAGS="${flags[*]} $*" ../libffi/configure --host="${host}"
+    CC="clang -arch ${arch}" CXX="clang++ -arch ${arch}" CFLAGS="${flags[*]}" CPPFLAGS="${flags[*]} $*" ../libffi/configure --host="${host}"
     make
     cd ..
 }
diff --git a/libffi b/libffi
index 91ad74f13b186aa23c00d5fea7658e9abb243543..1d903c83f0869ba96f0e87078688ac44b6ec9d42 160000 (submodule)
--- a/libffi
+++ b/libffi
@@ -1 +1 @@
-Subproject commit 91ad74f13b186aa23c00d5fea7658e9abb243543
+Subproject commit 1d903c83f0869ba96f0e87078688ac44b6ec9d42