下载地址
https://github.com/openssl/openssl/releases
以上链接下,有各个版本的源码下载。
编译环境
Ubuntu 18.04.3 LTS
编译配置
假设:
- 交叉编译工具:arm-linux-
使用的交叉编译工具版本信息如下:Target: arm-linux-gnueabi Configured with: --target=arm-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --disable-nls --enable-clocale=gnu --enable-libgomp --disable-libitm --enable-poison-system-directories Thread model: posix gcc version 6.3.0
- 交叉编译结果安装目录:/home/user/cross-compile/
编译配置如下:
./config no-asm shared --prefix=/home/user/work/cross-compile/openssl --cross-compile-prefix=arm-linux-
打开Makefile,屏蔽所有的-m64;
make
make install
- –prefix:指定安装目录
- –cross-compile-prefix:指定交叉编译工具