交叉编译openssl使用Hi3518EV300工具链

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.csdn.net/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'

 

你可能感兴趣的:(linux)