Skip to content

JohnFawkes/Bash-for-Android-Build-Script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Bash for Android

A script that patches & cross-compiles bash for Android using the Android NDK (except arm64 - see issues section below)

Prerequisites

  • Linux or Linux WSL on W10 (tested on Ubuntu WSL on W10 Pro)
  • GNU Make
  • Common sense

Compile

$ git clone ...

$ ./build-bash.sh

Notes

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

Issues

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)

Credits

License

MIT

About

Script and patches to cross compile bash for android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%