dhcp-4.3.5移植

来源:互联网 发布:淘宝上不错的美国代购 编辑:程序博客网 时间:2024/06/05 15:30

1、首先从官网上下载

Download (FTP): ftp://ftp.isc.org/isc/dhcp/4.3.5/dhcp-4.3.5.tar.gz补丁包:Optional patch:                 http://www.linuxfromscratch.org/patches/blfs/svn/dhcp-4.3.5-missing_ipv6-1.patchIf you have not compiled IPv6 support into the kernel, apply the  missing_ipv6 patch:
patch -Np1 -i ../dhcp-4.3.5-missing_ipv6-1.patch

2、进入cd dhcp-4.3.5

3、配置:./configure --host=arm-linux ac_cv_file__dev_random=yes  --with-randomdev=no

4、cd bind

修改Makefile:

bindconfig = --disable-kqueue --disable-epoll --disable-devpoll \
        --without-openssl --without-libxml2 --enable-exportlib \
        --with-gssapi=no --enable-threads=no  \
        --with-export-includedir=${binddir}/include \
        --with-export-libdir=${binddir}/lib

修改为

bindconfig = --disable-kqueue --disable-epoll --disable-devpoll \
        --without-openssl --without-libxml2 --enable-exportlib \
        --with-gssapi=no --enable-threads=no BUILD_CC=gcc ac_cv_file__dev_random=yes --host=arm-linux --with-randomdev=no \
        --with-export-includedir=${binddir}/include \
        --with-export-libdir=${binddir}/lib

5、make && make DESTDIR=$PWD/tmp install

0 0
原创粉丝点击