移植tcpreplay4.1.0

来源:互联网 发布:辛格尔软件 编辑:程序博客网 时间:2024/05/19 17:10
1,下载:http://tcpreplay.synfin.net
2,解压进入源码目录
touch cache
在cache文件中写入:
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_realloc_works=yes



./configure  --host=arm-none-linux-gnueabi  --cache-file=cache

修改src/makefile:
将“/usr/lib/x86_64-linux-gnu”(可能有所差异,具体看自己的环境)替换成libpcap.a(交叉编译)所在的目录路径


make CC="arm-none-linux-gnueabi-gcc -static -fPIE"
0 0
原创粉丝点击