交叉编译libpcap到openwrt ar71xx

CFLAGS="-O3 -fPIC" ./configure --prefix=安装目录 --host=mips-openwrt-linux

在这之前不要设置环境变量CFLAGS: export CFLAGS="-Os -s"

否则会有crtbeginT.o: could not read symbols: Bad value的错误。


你可能感兴趣的:(交叉编译libpcap到openwrt ar71xx)