This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: add override path to gcj-dbtool


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]