抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

参考资料

环境

  • 交叉工具链,gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux
  • coreutils库

编译x86版本

  • 错误也没所谓,主要是为了拿到一个辅助工具
1
2
3
4
5
git clone https://github.com/coreutils/coreutils coreutils_x64
./bootstrap
./configure
#把生成的Makefile中的-Werror删除掉,gnulib-tests/目录中的Makefile -Werror删除掉
make

编译arm版本

1
2
3
4
5
6
7
git clone https://github.com/coreutils/coreutils coreutils_arm
./bootstrap
export CC=arm-linux-gnueabihf-gcc
./configure --host=arm-linux-gnueabihf
#把前面x64生成的make-prime-list工具复制到src目录上,覆盖交叉编译出来的make-prime-list工具
#把生成的Makefile中的-Werror删除掉,gnulib-tests/目录中的Makefile -Werror删除掉
make

评论