# util-linux-ng-2.18 ./configure --host=arm-linux CC=aarch64-linux-gnu-gcc --prefix=`pwd`/install --disable-shared --without-ncurses --disable-fsck cd shlibs/uuid/ make make install #parted ./configure --prefix=`pwd`/install --host=arm-linux --disable-device-mapper --without-readline --disable-shared --enable-static CC=aarch64-linux-gnu-gcc CFLAGS="-I/media/feifei/work/rom/util-linux-ng-2.18/install/include" LDFLAGS="-L/media/feifei/work/rom/util-linux-ng-2.18/install/lib" make make install cd parted/ #顺序 aarch64-linux-gnu-gcc -static -o parted command.o parted.o strlist.o ui.o table.o libver.a libparted.a libuuid.a -ldl aarch64-linux-gnu-strip parted