This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[ping] Re: [patch] link java tools with -rpath $(dbexecdir)
- From: Matthias Klose <doko at ubuntu dot com>
- To: GCJ-patches <java-patches at gcc dot gnu dot org>
- Date: Mon, 24 Sep 2007 23:44:56 +0200
- Subject: [ping] Re: [patch] link java tools with -rpath $(dbexecdir)
- References: <46DABFF1.50303@ubuntu.com>
Matthias Klose schrieb:
> When installing two different gcj versions under the same prefix, the
> libgcj_bc.so.1 symlink is overwritten. Assume that you install 4.3.0 first, then
> reinstall an older version (having the libgcj_bc.so.1 symlink), java programs
> cannot be run anymore, because you get an ABI mismatch. This affects all java
> tools, including ecj1. It would be nice to make an installation more robust:
>
> - Install a copy of libgcj_bc.so.1 into $(dbexecdir)
> - Link the java tools with -rpath $(dbexecdir)
>
> The attached patch does this for ecj1 and gcj-dbtool; gij already is linked in
> this way. Other tools could be extended in the same way.
>
> Matthias
>
>