Chinaunix首页 | 论坛 | 博客
  • 博客访问: 649866
  • 博文数量: 156
  • 博客积分: 4833
  • 博客等级: 上校
  • 技术积分: 1554
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-21 19:36
文章分类

全部博文(156)

文章存档

2016年(2)

2013年(1)

2012年(13)

2011年(30)

2010年(46)

2009年(29)

2008年(23)

2007年(12)

分类: C/C++

2010-03-04 10:25:40


     
     声明环境变量
     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
阅读(3910) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~