项目场景:
nginx交叉编译过程中的问题
主要参考:(17条消息) 移植Nginx到ARM Linux_敲代码痛苦吗?的博客-CSDN博客_nginx移植
问题描述
提示opensll库相关错误
error adding symbols: File in wrong format collect2: error: ld returned 1 exit status
解决方案:
先将opensll交叉编译得到库,而后在/obj/Makefile中修改
/yourpath/lib/libssl.a /yourpath/lib/libcrypto.a
若是报threads_pthread.c:(.text+0x3a): undefined reference to `pthread_rwlock_init'
则在相同位置 -ldl 之后添加 -lpthread 链接多线程库