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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章