Update soname

Bryce McKinlay bryce@albatross.co.nz
Fri Feb 23 20:34:00 GMT 2001


Alexandre Oliva wrote:

> On Feb 21, 2001, Bryce McKinlay <bryce@albatross.co.nz> wrote:
>
> > Where the interface number (starting at "2" to differentiate from the redhat
> > release) gets bumped for each major release when incompatible ABI changes are
> > made, and the "3.0.0" tracks the actual package version.
>
> Yep.  See -version-info and -release in the libtool manual.

I tried this (patch below), but libtool doesn't seem to do the right thing:

$ readelf -d ~/gcc3/lib/libgcj.so

Dynamic segment at offset 0x3ee284 contains 23 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libgcj-3.0.so.2]
[...]

The "-3.0" is built in to the soname, which is not what we want because this will
mean that every change in the release number breaks compatibility. How can we make
it use "libgcj.so.2" for the soname, and make a libgcj.so.2 -> libgcj-3.0.so
symlink?

regards

  [ bryce ]



More information about the Java mailing list