1、下载文件:https://codeload.github.com/openssl/openssl/tar.gz/OpenSSL_1_1_0l
export CROSS_COMPILE=arm-himix100-linux-
./config no-asm shared no-async --prefix=$(pwd)/../cross_lib
make -j4
make install
2、编译过程如果不加 “no-async” 选项,就会提示以下错误:(参考 https://blog.youkuaiyun.com/WanAnZaiQingChen/article/details/81507557)
./libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
./libcrypto.so: undefined reference to `getcontext'
./libcrypto.so: undefined reference to `setcontext'
./libcrypto.so: undefined reference to `makecontext'