简体   繁体   English

猫鼬与libssl静态链接?

[英]Mongoose statically linking with libssl?

I want to compile moongose with static library of libssl . 我想用libssl静态库编译moongose。 I have given .a file with -L option. 我给了带有-L选项的.a文件。 But still it is loading .so file. 但是仍然正在加载.so文件。 why ? 为什么呢? how can I force it to use static lib ? 我怎么能强迫它使用静态库?

Run compilation under strace , to look where .a file is being searched and why .so is loaded instead. strace下运行编译,以查找.a文件的搜索位置以及为何加载.so的原因。

EDIT 编辑
By default moongose loads SSL dynamically. 默认情况下,moonggose动态加载SSL。 To change this compile it with NO_SSL_DL macro. 要更改它,请使用NO_SSL_DL宏对其进行编译。 Add -DNO_SSL_DL to compilation command line. -DNO_SSL_DL添加到编译命令行。 See this link . 看到这个链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM