This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: JAXP suggestions
- From: Per Bothner <per at bothner dot com>
- To: Anthony Green <green at redhat dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, java at gcc dot gnu dot org
- Date: Mon, 02 Dec 2002 22:35:32 -0800
- Subject: Re: JAXP suggestions
- References: <1038431095.4696.504.camel@escape> <87lm3811td.fsf@fleche.redhat.com> <1038893592.4993.49.camel@escape>
Anthony Green wrote:
That being said, there's something that's bothering me about his
proposal. For one, my model of building rhug packages where all
dependent packages are in an uninstalled build tree isn't addressed,
is it?
I'm not sure what you're referring to. I'm guessing it's the
problem of trying to build xerces in rhug, using sax/dom that
are incompatible with the installed ones? In that case the
installed jar files will not be found, and so we won't link
against the installed .so's either.
Jar file names also don't map to gcj-style shared library names (unless
we repackage every "standard" jar file before installing).
Actually, what I thought we should do is find the name of the
shared library in the .jar itsef, in one of the "meta"-files
of the jar file. This als solves the problem of installing
a jar file only in an extension directory.
I.e. if we find a a class in a .jar, we look to see if the
jar has a "shared-library-name" attribute. (This attribute
would probably be stored somehow in a non-.class member of
the .jar.) If the attribute is missing, we assume the jar was
installed by a non-gcj package, and we default is_compiled_class
to 1. Otherwise, we default is_compiled_class to 0, and we add
the named shared library to the linker command line.
What about simply annotating jar files with info about installed shared
library representations? Maybe we can simply add a `gcj.config' file to
installed jar files which describe class to shared library mappings to
the compiler.
Either of those work.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/