]> git.saurik.com Git - cycript.git/blobdiff - ios.sh
New syntax: let declarations, initialised arguments.
[cycript.git] / ios.sh
diff --git a/ios.sh b/ios.sh
index 1132db32ca48fac1faf427cf09674cc0a90967fd..c09d64ca583be5b31abb7922dc9153fe45236faf 100755 (executable)
--- a/ios.sh
+++ b/ios.sh
@@ -42,7 +42,7 @@ flags_armv6+=(-F"${sdk}"/System/Library/PrivateFrameworks)
 flags_armv6+=(-framework WebCore)
 
 
-flags=()
+flags=(-O2)
 for flag in "${flags_armv6[@]}"; do
     flags+=(-Xarch_armv6 "${flag}")
 done
@@ -61,6 +61,7 @@ lflags=${lflags[*]}
 export LTFLAGS=${lflags}
 
 ./configure --prefix=/usr "$@"
+sed -i -e 's/\(-arch armv6\) -arch i386 -arch x86_64/\1/' GNUmakefile
 
 make clean
 make -j ldid=ldid all