1、解压openssl至目录/home/yk/openssl/openssl-1.0.2h
2、进入目录/home/yk/openssl/openssl-1.0.2h
3、
mkdir yk3399_openssl
4、
./config -fPIC no-shared --prefix=/home/yk/openssl/openssl-1.0.2h/yk3399_openssl --openssldir=/home/yk/openssl/openssl-1.0.2h/yk3399_openssl
5、
make && make install
生成的lib在/home/yk/openssl/openssl-1.0.2h/yk3399_openssl
6、解压curl至目录/home/yk/curl/curl-7.67.0
7、进入目录/home/yk/curl/curl-7.67.0
8、
mkdir yk3399_curl
9、
./configure --prefix=/home/yk/curl/curl-7.67.0/yk3399_curl --disable-shared -with-ssl=/home/yk/openssl/openssl-1.0.2h/yk3399_openssl
10、
make && make install
生成的lib在/home/yk/curl/curl-7.67.0/yk3399_curl
注意:保持curl和openssl版本时间相近,都下最新的源码即可,否则x86 openssl和curl版本匹配问题还是比较头疼的。
交叉编译参考:
ubuntu openssl1.0.2g交叉编译_rayylee-CSDN博客
主要参数:no-asm , 32位需要删除-m64
版权声明:本文为Janskid原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。