zl程序教程

您现在的位置是:首页 >  系统

当前栏目

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

Linux 如何 编译 交叉 util
2023-09-11 14:16:48 时间

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