]> git.saurik.com Git - cycript.git/commitdiff
Compile libffi with the changes needed for ARM64.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 2 Jan 2014 03:21:45 +0000 (19:21 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 2 Jan 2014 03:21:45 +0000 (19:21 -0800)
libffi.sh

index 9d887df6f21429fe71f9e8d18fa9585fc69e23a9..1d13f9b58c6e2fff82914f20dc6b282f54f52a56 100755 (executable)
--- a/libffi.sh
+++ b/libffi.sh
@@ -38,10 +38,15 @@ function arch() {
     archs+=("${arch}")
     mkdir "libffi.${arch}"
 
-    flags="-isysroot ${isysroot} -m${os}-version-min=${min}"
+    flags=()
+    flags+=(-isysroot "${isysroot}")
+    flags+=(-m${os}-version-min="${min}")
+    flags+=(-no-integrated-as)
+    flags+=(-fno-stack-protector)
+    flags+=(-O3 -g3)
 
     cd "libffi.${arch}"
-    CC="clang -arch ${arch}" CFLAGS="-no-integrated-as ${flags}" CPPFLAGS="${flags}" ../libffi/configure --host="${host}"
+    CC="clang -arch ${arch}" CFLAGS="${flags[*]}" CPPFLAGS="${flags[*]}" ../libffi/configure --host="${host}"
     make
     cd ..
 }