A script that patches & cross-compiles bash for Android
- 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 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) for reasons unknown and so won't work
MIT