Jeffrey Walton noloader@gmail.com writes:
Also see https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.....
It's not entirely clear to me how libtool versions maps to soname, but from looking at GMP, I guess the number embedded in the soname is current - age. So for gmp-6.1.2, the libtool version is 13:2:3, current - age = 13 - 3 = 10, and soname is libgmp10.so.
Is that right? If so, the case
2. Programs using the previous version may use the new version as drop-in replacement, but programs using the new version may use APIs not present in the previous one. In other words, a program linking against the new version may fail with "unresolved symbols" if linking against the old version at runtime: set revision to 0, bump current and age.
would always leave soname unchanged, since the bump of both current and age cancel out when construction the soname.
The recent release of gmp-6.2.0 is of this form, and has libtool version 14:0:4, 14 - 4 = 10.
Am I getting the libtool covnentions right?
Regards, /Niels