首先看下libtool官方对library版本系统的说明。
7.3 Updating library version information
If you want to use libtool's versioning system, then you must specify the version information to libtool using the -version-info flag during link mode (see Link mode).
This flag accepts an argument of the form ‘current[:revision[:age]]’. So, passing -version-info 3:12:1 sets current to 3, revision to 12, and age to 1.
If either revision or age are omitted, they default to 0. Also note that age must be less than or equal to the current interface number.
Here are a set of rules to help you update your library version information:
Start with version information of ‘0:0:0’ for each libtool library.
Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only gu