其实还是很顺利的。
- 下载
LINUX下载编译OpenSSL_linux下载 openssl-CSDN博客
-
编译
BUILD_LIBS=${HOME}/build_libs
CROSS_NAME=aarch64-mix210-linux
export PATH=/opt/linux/x86-arm/{CROSS_NAME}/bin:{PATH}make clean
./config
--cross-compile-prefix={CROSS_NAME}- \ no-asm \ -fPIC shared \ --prefix={BUILD_LIBS}
--openssldir=${BUILD_LIBS}/opensslreplace all -m64
sed -i 's/-m64/ /g' Makefile
make
make install
-
检查编译结果
check file
echo
for so_file in libcrypto.so.1.1
libssl.so.1.1
do
so_file={BUILD_LIBS}/lib/{so_file}
file ${so_file}
done~build_libs/lib/libcrypto.so.1.1: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, not stripped
~build_libs/lib/libssl.so.1.1: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, not stripped