X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/e2ce853b4a48f8278dc46e4143aa845b18948651..068672f645dcdcf868fea6bbbef715880f019a1d:/android.sh?ds=inline diff --git a/android.sh b/android.sh index d155b1b..da2bd6a 100755 --- a/android.sh +++ b/android.sh @@ -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[*]}" "$@" }