打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
交叉编译 dhcp-4.2.5-P1
wget ftp://ftp.isc.org/isc/dhcp/4.2.5-P1/dhcp-4.2.5-P1.tar.gz
tar -zxvf dhcp-4.2.5-P1.tar.gz
cd dhcp-4.2.5-P1
1) 配置host
./configure --host=arm-linux ac_cv_file__dev_random=yes
widon@widon-F3JR:~/Desktop/code/dhcp-4.2.5-P1$ makeMaking all in bindmake[1]: Entering directory `/home/widon/Desktop/code/dhcp-4.2.5-P1/bind'Configuring BIND Export libraries for DHCP.
这个时候ctrl-c停掉,编辑修改一个makefile文件
2) vim ./bind/bind-9.8.4-P2/lib/export/dns/Makefile.in
把169行的{CC}改为{BUILD_CC}
3) vim bind/Makefile
在55行左右的./configure改成 BUILD_CC=gcc ./configure --host=arm-linux --with-randomdev=/dev/random 
widon@widon-F3JR:~/Desktop/code/dhcp-4.2.5-P1$ grep BUILD_CC bind/Makefile		(cd ${bindsrcdir} && BUILD_CC=gcc ./configure --host=arm-linux --with-randomdev=/dev/random --disable-kqueue --disable-epoll --disable-devpoll --without-openssl --without-libxml2 --enable-exportlib --enable-threads=no --with-export-includedir=${binddir}/include --with-export-libdir=${binddir}/lib --with-gssapi=no > ${binddir}/configure.log); 
然后再
make
交叉编译就成功了
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Makefile.am、Makefile.in和Makefile的关系
qte for arm的编译过程
在Ubuntu上安裝Kscope
深入浅出学Makefile<二:如何自动生成Makefile>
基于s3c2410的tslib1.4的编译与移植
在Linux下编译WebkitGtk | 移动开发博客
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服