This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Java Patches: -fno-org-xml-sax and -fno-org-w3c-dom
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Anthony Green <green at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org, <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 1 Dec 2002 12:55:04 -0500 (EST)
- Subject: Re: Java Patches: -fno-org-xml-sax and -fno-org-w3c-dom
On 30 Nov 2002, Anthony Green wrote:
> We recently discussed moving org.xml.sax and org.w3c.dom into their own
> shared libraries, and adding a compiler flag to turn off linking them in
> by default. After some reflection it seems like a single flag isn't
> really a good idea. The -fno-jaxp idea isn't really workable as jaxp
> will change over time. The scheme implemented below seems flexible
> enough...
What would be the harm in _not_ linking these libraries by default?
With this patch, I either have to alter all my makefiles, or accept that
each binary I link requires two new DSOs.
Alternatively, if -l-org-xml-sax and -l-org-w3c-dom aren't linked
automatically, existing binaries are unaffected and no front-end changes
are required. Those who need the libraries can just add the linker flags
(or use xerces).
In any case I think breaking org.xml and org.w3c out of libgcj.so is a
great idea.
> + org/xml/sax/helpers/NewInstance.java \
BTW this class doesn't appear to be in the tree.
Jeff