]>
git.saurik.com Git - cycript.git/blob - android.sh
7 bin
=${ndk}/toolchains
/arm
-linux-androideabi-${ver}/prebuilt
/${bld}/bin
8 #export PATH=${bin}:$PATH
10 flg
+=(--sysroot=${ndk}/platforms
/android
-${api}/arch
-arm)
11 flg
+=(-I${ndk}/sources
/cxx
-stl/gnu
-libstdc++/${ver}/include
)
12 flg
+=(-I${ndk}/sources
/cxx
-stl/gnu
-libstdc++/${ver}/libs
/${abi}/include
)
14 ldf
+=(-L${ndk}/sources
/cxx
-stl/gnu
-libstdc++/${ver}/libs
/${abi})
15 ldf
+=(-lgnustl_static)
16 tgt
=arm
-linux-androideabi
21 ldf
+=(-rdynamic -fPIE -pie)
28 CC
="${cc} ${flg[*]}" CXX
="${cxx} ${flg[*]}" OBJCXX
="${cxx} ${flg[*]}" \
29 CFLAGS
="${ccf[*]}" CXXFLAGS
="${ccf[*]}" OBJCXXFLAGS
="${ccf[*]}" \
30 --host="${tgt}" CPPFLAGS
="${cpp[*]}" LDFLAGS
="${ldf[*]}" "$@"