This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: RFC: make libltdl search for version-specific symlinks first
- From: Andrew Haley <aph at redhat dot com>
- To: Thomas Fitzsimmons <fitzsim at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Wed, 25 Aug 2004 15:04:42 +0100
- Subject: Patch: RFC: make libltdl search for version-specific symlinks first
- References: <1093281047.6237.46.camel@tortoise.toronto.redhat.com>
Thomas Fitzsimmons writes:
> Hi,
>
> This patch makes libltdl search for a version-specific DSO before
> searching for the corresponding versionless DSO. This will allow
> multiple ABI-incompatible versions of libgcj to be installed in parallel
> in the same prefix. Currently, this isn't possible because libltdl
> finds only the versionless .so symlink, so only the most
> recently-installed libgcj will find the correct version of the peer
> library.
>
> Currently, libltdl searches for the peer library like this: first it
> looks for lib-gnu-java-awt-peer-gtk.la. Failing that, it looks for
> lib-gnu-java-awt-peer-gtk.so. This patch adds an intermediate search
> for lib-gnu-java-awt-peer-gtk.so.n, where n is the ABI version number.
I'm in favour of this solution, but I want Tom Tromey's input.
Andrew.