声明环境变量
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
阅读(3961) | 评论(0) | 转发(2) |