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: Per Bothner <per at bothner 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, 01 Dec 2002 10:07:31 -0800
- Subject: Re: Java Patches: -fno-org-xml-sax and -fno-org-w3c-dom
- References: <1038718968.31616.23.camel@escape>
Anthony Green wrote:
We recently discussed moving org.xml.sax and org.w3c.dom into their own
shared libraries,
That makes sense, though it might make sense to put them in
a single shared library.
and adding a compiler flag to turn off linking them in
by default.
This is not OK, IMO. It's a bad precedent. We can't keep
adding random flags for specific packages.
First, note it's not just linking, but also compiling - i.e.
controlling which jar(s) that the compiler searches. By
default the compiler should search the jars in the extension
directory.
Secondly, I think the choice as to which shared library to
link should parallel which jars are compiled against. If the
compilation classpath options causes the standard sax/dom jars
(in the standard extension directory) to be searched, then the
linker should link against the standard sax/dom shared library(ies),
and only then.
Command line flags are evil, and unnecessary in this case.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/