Chinaunix首页 | 论坛 | 博客
  • 博客访问: 818230
  • 博文数量: 321
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 936
  • 用 户 组: 普通用户
  • 注册时间: 2013-02-23 11:25
文章分类

全部博文(321)

文章存档

2017年(1)

2016年(10)

2015年(61)

2014年(187)

2013年(62)

分类: C/C++

2014-07-22 12:02:25

原文地址:移植 dhcp 4.1.1 作者:gaocheng


     
     声明环境变量
     export PATH=$PATH:/opt/arm-linux/usr/bin
     export CC=arm-linux-gcc
  解压 dhcp-4.1.1.tar.gz 文件
  进入目录
  echo 'ac_cv_file__dev_random=yes' > arm-linux.cache
 ./configure --prefix=/home/user/src/dhcp-4.1.1/install --host=arm-linux --enable-dhcpv6=yes --cache-file=arm-linux.cache
 
如果不想连接libcrypto
  修改configure文件:
      Line:7203~7209
 
  for ac_lib in '' crypto; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
 
  为
  for ac_lib in '' crypto; do
  #if test -z "$ac_lib"; then
    ac_res="none required"
  #else
  #  ac_res=-l$ac_lib
  #  LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  #fi
阅读(551) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~