]> git.saurik.com Git - cycript.git/blobdiff - android.sh
Do not add duplicate history entries for up-enter.
[cycript.git] / android.sh
index d155b1b02321f33342c0e7c4d8c3a50d0931758e..da2bd6ae6aa6da82470ac8c667c29dcd39d5089c 100755 (executable)
@@ -17,10 +17,13 @@ tgt=arm-linux-androideabi
 cc=${bin}/${tgt}-gcc
 cxx=${bin}/${tgt}-g++
 cpp=()
-cpp+=(-fPIE)
-ldf+=(-rdynamic -fPIE -pie)
+ccf=()
+ccf+=(-g0 -O3)
 function cfg() {
     cfg=$1
     shift
-    CC="${cc} ${flg[*]}" CXX="${cxx} ${flg[*]}" OBJCXX="${cxx} ${flg[*]}" "${cfg}" --host="${tgt}" CPPFLAGS="${cpp[*]}" LDFLAGS="${ldf[*]}" "$@"
+    "${cfg}" \
+        CC="${cc} ${flg[*]}" CXX="${cxx} ${flg[*]}" OBJCXX="${cxx} ${flg[*]}" \
+        CFLAGS="${ccf[*]}" CXXFLAGS="${ccf[*]}" OBJCXXFLAGS="${ccf[*]}" \
+        --host="${tgt}" CPPFLAGS="${cpp[*]}" LDFLAGS="${ldf[*]}" "$@"
 }