开发者

How to load a .so file statically with make?

Is there a ma开发者_开发知识库kefile modification which can help me load a shared library(*.so file) statically?


You can't link a shared library statically (or share a static one); they're different animals. What you can do is build a static library from the object files, or if that's not possible you can convert a shared library into a static one with a tool like Statifier, then link that.

A makefile is a kind of scripting tool; it automates tasks you could do by hand. You must figure out how to do something by hand before you ask Make to do it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜