How to do versioning of a shared library in Linux?

前端 未结 3 432
南方客
南方客 2020-12-10 05:10

Windows provides the resource file for version information for an application and DLL. The resource file includes information like version, copyright and manufacturer.

3条回答
  •  北海茫月
    2020-12-10 05:49

    Linux uses the following strategy - you (the system maintainer) provide symlinks from a 'specific' shared library file, like this:

    lrwxrwxrwx 1 root root    16 2011-09-22 14:36 libieee1284.so -> libieee1284.so.3
    lrwxrwxrwx 1 root root    20 2011-09-22 14:36 libieee1284.so.3 -> libieee1284.so.3.2.2
    -rw-r--r-- 1 root root 46576 2011-07-27 13:08 libieee1284.so.3.2.2
    

    This way, developers can link either against -lieee1284 (any version ABI), or libieee1284.so.3 or even to the specific release and patch version (3.2.2)

提交回复
热议问题