移植openssl到海思3536c平台

可以直接用以下命令生成makefile:

CC=arm-hisiv500-linux-gcc ./config no-asm no-async shared --prefix=/opt/openssl/

就可直接使用make命令进行编译,使用make install命令安装。
然后把生成的头文件和库文件放到编译器下一份,再把库文件放到板子上一份即可。

注意:如果不加 no-async 会报如下错误:

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

 

Guess you like

Origin blog.csdn.net/wuquan_1230/article/details/118765756