从openssl官网下载openssl
https://www.openssl.org/source/
1.解压到linux中
2. ./config no-asm shared --prefix=$(pwd)/__install
3.修改Makefile
CC AR RANLIB NM 都改为正确的交叉工具链。
删除其中的-m32或-m64
执行make
make成功后,执行make install
如果移植目标板中,程序运行后提示glibc版本不对,则可使用strings /lib/tls/libc.so.6 | grep GLIBC进行查看库的glibc版本,如果版本不支持,换个其他版本的openssl
原文:https://www.cnblogs.com/whylinux/p/11737039.html