cross compile git for arm/Android
Checkout git source code using some release tag from https://github.com/git/git/releases Compilation steps (copy/paste to bash shell) export API_LEVEL=android-23 # Android 6.0 export COMPILER_ARCH=arm-linux-androideabi-4.9 export ANDROID_NDK=/home/usrname/adr/ndk # or your Android NDK root directory export CC=${ANDROID_NDK}/toolchains/$COMPILER_ARCH/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc export CCOPT="-O2 -fpic --sysroot=/home/usrname/adr/ndk/platforms/$API_LEVEL/arch-arm -DANDROID -DOS_ANDROID -pie" export CFLAGS="--sysroot=${ANDROID_NDK}/platforms/$API_LEVEL/arch-arm -DANDROID -DOS_ANDROID" export LDFLAGS="--sysroot=${ANDROID_NDK}/platforms/$API_LEVEL/arch-arm -fPIC -mandroid -L${ANDROID_NDK}/platforms/$API_LEVEL/arch-arm/usr/lib -pie" # add -pie (position independent executable) for running on multiple phones cd git-v2.9.3/ # enter git source code directory or checkout v2.9.3 autoconf # generate configure Wor...