RFC: add override path to gcj-dbtool
Gary Benson
gbenson@redhat.com
Mon Sep 11 09:36:00 GMT 2006
Robert Schuster wrote:
> I am writing a maven plugin which does among other things, native
> compilation (BC ABI) with gcj and got into trouble when creating
> the classmap file for the just compiled .so.
>
> gcj-dbtool inserts the absolute location of the .so into the
> classmap which is bad for me, because after installation the .so
> will lie at a completely different location (/usr/share/java
> instead of /home/foo/baz/devel/..../).
>
> Looking at the tool's source code I saw no immediate need that the
> location must be taken from the .so file itself and so I wrote a
> patch which allows me to provide an override path.
gcj-dbtool puts whatever path you supply it into the database, so
just pass it the final location. For example aot-compile-rpm does
this:
gcj-dbtool -f /build/dir/database.db /build/dir/jarfile.jar /usr/lib/solib.so
This works just fine even though /usr/lib/solib.so does not exist
at the time gcj-dbtool is run.
Cheers,
Gary
More information about the Java-patches
mailing list