文件版本信息 [英] File version information
本文介绍了文件版本信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将版本信息添加到文件?文件通常是可执行文件,.so和.a文件。
How can I add version information to a file? The files will typically be executables, .so and .a files.
注意:我使用的是C ++,dpkg-build和Ubuntu 8.10,如果任何一个支持这个。
Note: I'm using C++, dpkg-build and Ubuntu 8.10 if any of those have support for this.
推荐答案
对于共享对象,请将 -Wl,soname,< soname>
传递给gcc或 soname< soname>
到ld。
For shared objects pass -Wl,soname,<soname>
to gcc, or -soname <soname>
to ld.
可执行文件和静态库本身没有版本信息,但可以将其添加到文件名如果你喜欢。
Executables and static libraries do not have version information per se, but you can add it to the filename if you like.
这篇关于文件版本信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文