[patch] link java tools with -rpath $(dbexecdir)
Matthias Klose
doko@ubuntu.com
Sun Sep 2 13:51:00 GMT 2007
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libjava-ecjxrpath.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070902/5aa77571/attachment.ksh>
More information about the Java-patches
mailing list