编译aarch64平台的aria2c ,比如 n1.
借鉴了https://github.com/q3aql/aria2-static-builds
sudo apt install \
make binutils autoconf automake autotools-dev \
libtool pkg-config git curl dpkg-dev autopoint libcppunit-dev \
libxml2-dev lzip wget -y
git clone https://github.com/aria2/aria2.git
cd aria2
autoreconf -i
make
编译完二进制文件在源码的src目录
文件尺寸过大的话,执行
/opt/aria2-aarch64/tools/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-strip ./src/aria2c
会减小体积,但是达不到官方2M的尺寸,有哪位知道怎么做的请指教,谢谢!