Java Patches: -fno-org-xml-sax and -fno-org-w3c-dom
Jeff Sturm
jsturm@one-point.com
Sun Dec 1 09:55:00 GMT 2002
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
More information about the Java-patches
mailing list