This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: RFC: add override path to gcj-dbtool
- From: Gary Benson <gbenson at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 11 Sep 2006 10:35:59 +0100
- Subject: Re: RFC: add override path to gcj-dbtool
- References: <45052AF4.40901@gmx.net>
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