[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: versioning, backward compatability

From: Andreas Metzler
Subject: Re: versioning, backward compatability
Date: Sat, 30 Jun 2007 16:45:22 +0200
User-agent: tin/1.9.2-20070201 ("Dalaruan") (UNIX) (Linux/2.6.18-4-k7 (i686))

<address@hidden> wrote:
> I translated my library using libtool with the -version-info=5:0:0
> parameter and I installed it into /usr/local//lib using libtool.
> Then I translated executable "prog" which was linked with this
> library. Readelf -d prog shows 

> 0x00000001 (NEEDED) Shared library: []

> Then I translated same library again with parameter -version-info
> 6:0:6. With this, I wanted to say that this new interface number 6
> is backward compatible with all older interfaces and that all
> programs that was ever linked againts any former version of my
> library should now link this new version of library.

Following libtool's generic versioning recipe ...

| 3 If the library source code has changed at all since the last update,
| then increment revision (`c:r:a' becomes `c:r+1:a').
| 4 If any interfaces have been added, removed, or changed since the
| last update, increment current, and set revision to 0.
| 5 If any interfaces have been added since the last public release,
| then increment age.
| 6 If any interfaces have been removed since the last public release,
| then set age to 0.

... you should have ended up with 5:1:0 or 6:0:1.

cu andreas

`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

reply via email to

[Prev in Thread] Current Thread [Next in Thread]