解压后,进入目录,执行以下命令:
mkdir build
cd build
../configure --host=arm-linux CC=arm-gcc7.3-linux-musleabi-gcc --prefix=$PWD/install
make
make install
解压tcpdump源码,进入目录,执行以下命令:
mkdir build
cd build../configure --host=arm-linux CC=arm-gcc7.3-linux-musleabi-gcc CFLAGS="-I../../libpcap-1.10.1/build/install/include/ -L../../libpcap-1.10.1/build/install/lib/ -static"
make