开发者

How to load a .so file statically with make?

开发者 https://www.devze.com 2023-02-12 07:37 出处:网络
Is there ama开发者_开发知识库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 a

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

精彩评论

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