Deprecated - See here for up to date build script
A script that patches & cross-compiles bash for Android using the Android NDK (except arm64 - see issues section below)
- Linux or Linux WSL on W10 (tested on Ubuntu WSL on W10 Pro)
- GNU Make
- Common sense
$ git clone ...
$ ./build-bash.sh
The android patches are for bash 4.4-23 and 5.0.x stable. If you're compiling any other version of bash, make sure the patch files are targeting the correct lines (use check argument)
If building fails, you likely need to add/remove/modify patches. Just place the patches in the patches folder and the script will apply them
Arm64 always compiles with dynamic linker (/lib/ld-linux-aarch64.so.1) with Android NDK for reasons unknown and linaro gcc is used instead (thanks to @ianmacd for the fix)
MIT