linux下如何交叉编译util-linux?


1. 获取源码

wget https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.34/util-linux-2.34.tar.xz

2. 解压

tar xvf util-linux-2.34.tar.gz

cd util-linux-2.34

3. 配置

export CC=aarch64-linux-gnu-gcc
./configure --host=aarch64-linux-gnu LDFLAGS=-static --without-python --without-tinfo --without-ncursesw --without-ncurses

5. 编译

make -j4

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM