Compile Bash for Android
来源:互联网 发布:.wang域名能备案吗 编辑:程序博客网 时间:2024/06/05 20:39
1. Get the bash source:
$ wget -c http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz
$ tar zxvf bash-4.1.tar.gz
2. Download the ARM Toolkit , e.g. Sourcery G++ Lite 2008q1-126 for ARM GNU/Linux
$ wget -c http://www.codesourcery.com/sgpp/lite/arm/portal/package2549/public/arm-none-linux-gnueabi/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
note: using the newest toolchain compile bash-4.1 failed, use this toolchain 4.2.3 compiled ok.
3. configure the bash
$ cd bash-4.1
$./configure -host=arm-linux --enable-static-link --without-bash-malloc CC=/yourpath/arm-2008q1/bin/arm-none-linux-gnueabi-gcc
4. compile the bash
$ make
$ arm-none-linux-gnueabi-strip bash
$ file bash
bash: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.14, stripped
- Compile Bash for Android
- How to Cross Compile the Bash shell for Android 1.5
- How to Cross Compile the Bash shell for Android 1.5 (为Android平台编译Bash shell)
- Compile Busybox for Android
- chromium compile for android
- compile ffmpeg for android
- libx264 compile for android
- compile xbmc for android
- vlc for android compile
- VLC compile for Android
- Compile ffmpeg for Android
- cross compile busybox for android
- cross compile toolchain for arm/android
- Compile C/C++ In Eclipse for Android
- ffmpeg compile with neon support for android
- compile x264 for Android on Mac
- Compile env setup for Android source
- compile x264 for Android on Mac
- 测试代码片段运行时间的代码片段
- 2011-1-10
- vmware问题
- setup nfs within win7
- 在网络中传输数据(II)
- Compile Bash for Android
- 博客在csdn安家
- 实验: SHChangeNotify 操作整理
- 取文件
- 真机上写LOG
- LINUX下非交互加入root权限用户和修改密码的python小程序
- 2011年1月10日
- 我的IM - 基础篇[1] - Socket
- JavaScript高级培训-自定义对象