开发者

Getting the DLL name from a mingw32-compiled lib/a file

I am changing our build system in order to handle cross-compiling and packaging.

It is a common thing to ship dependencies' DLLs but CMake's FindXXX modules(./configure checks) don't provide the path to these DLLs but only to .a files. I quickly looked inside the .a libs and they all seem to contain the DLL's name.

What would 开发者_运维知识库be a proper way of extracting them[PS: The DLL file name of each .a] from the .a file on a Linux build machine?


The .a file is the version of the library for static linking - if there is a dynamic linking version, it will be in the same location with the same name, except with a .so extension. (.so means "shared object").

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜