bash 编译

1. 下载bash 源码

https://www.gnu.org/software/bash/bash.html

2. 解压

3. 配置

./configure CC=/xx/xx/xx/xx-gcc -prefix=/xxx/xxx/xxx --host=x86_64-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-static-link --enable-history --without-bash-malloc

example:

./configure -prefix=/opt --host=x86_64-pc-linux-gnu --enable-static-link --enable-history --without-bash-malloc

4.编译

make

5.安装

make install

猜你喜欢

转载自blog.csdn.net/yh2869/article/details/83058524
今日推荐