翻译 makefile 以生成静态 libxxx.a 而不是动态 libxxx.dylib
看起来“make”只是编译和链接一些C/C++代码。
I am compiling a library (http://www.antisphere.com/Wiki/tools:anttweakbar) but issuing "make" with its included makefile on my mac produces a dynamic library (.dylib). I would much rather have a static library so that I can deploy it with my app. Is it easy/possible to translate the flags in the makefile to produce a static library?
It seems that "make" is just compiling and linking some C/C++ code.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它看起来不像是使用任何特定于 dylib 的编译标志来构建对象,因此您可以使用以下命令手动构建库:
It doesn't look like it's building the objects with any dylib-specific compilation flags, so you could just do the library build manually with something like:
我有坏消息要告诉你。 这可能会阻止您做您想做的事情。
I have bad news for you. This probably prevents you from doing what you want.