首页 > 系统相关 >交叉编译脚本-tcpdump

交叉编译脚本-tcpdump

时间:2022-11-08 11:07:21浏览次数:71  
标签:交叉 -- 编译 INSTALL linux PATH tcpdump arm


说明

编译tcpdump的脚本。

参考

​tcpdump的移植和使用方法​

编译脚本

run_tcpdump.sh

#!/bin/bash

set -e

PATH_INSTALL=/opt/tcpdump

if [ -f "Makefile" ]; then
make distclean
fi

rm -rf $PATH_INSTALL

./configure \
--prefix=$PATH_INSTALL \
--host=arm-linux \
--target=arm-linux \
--with-pcap=linux \
CC=arm-hisiv400-linux-gcc

make -j12
make install

run_libcap.sh

#!/bin/bash

set -e

PATH_INSTALL=/opt/libpcap

if [ -f "Makefile" ]; then
make distclean
fi

rm -rf $PATH_INSTALL

./configure \
--prefix=$PATH_INSTALL \
--host=arm-linux \
--target=arm-linux \
--with-pcap=linux \
CC=arm-hisiv400-linux-gcc

make -j12
make install


标签:交叉,--,编译,INSTALL,linux,PATH,tcpdump,arm
From: https://blog.51cto.com/u_13316945/5832261

相关文章