arm-linux 移植openssl wget支持https

ubunutu1404:
cpu am335x
linux kernel:3.12
arm板端文件系统: ddc2_fs
交叉编译器版本:arm-linux-gcc-4.3.2.tgz
根据交叉编译器版本选择wget和openssl的版本
wget版本:http://www.gnu.org/software/wget/ wget-1.12
openssl版本:https://www.openssl.org/  openssl-0.9.8zd




1、openssl交叉编译
openssl-0.9.8zd$ mkdir install
openssl-0.9.8zd$  ./config --prefix=/home/yqa1404/tools/openssl-0.9.8zd/install os/compiler:/home/yqa1404/tools/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc
openssl-0.9.8zd$ make 
 openssl-0.9.8zd$  make install
#install/lib生成engines  libcrypto.a  libssl.a  pkgconfig


2 、 wget 交叉编译
wget-1.12$ mkdir install 
//--with-libssl-prefix=为openssl安装目录为wget提供lib
wget-1.12$ ./configure --with-ssl=openssl --prefix=/home/yqa1404/tools/wget-1.12/install/ --host=arm-linux CC=/home/yqa1404/tools/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc --with-libssl-prefix=/home/yqa1404/tools/openssl-0.9.8zd/install
wget-1.12$ make 
wget-1.12$ make install
#install/bin 下生成wget 复制到文件系统usr/bin下执行即可
测试:
wget http://www.gnu.org/software/wget/manual/wget.pdf
wget --no-check-certificate https://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gz

猜你喜欢

转载自blog.csdn.net/yqa1027473639/article/details/79083670