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 18:07:39 -0500 (EST)
- Subject: Re: Java Patches: -fno-org-xml-sax and -fno-org-w3c-dom
On 1 Dec 2002, Anthony Green wrote:
> On Sun, 2002-12-01 at 09:55, Jeff Sturm wrote:
> > 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)
>
> This goes against one of our unwritten rules, which is that JDK-like
> behaviour should not require extra flags. Is it time to revisit this?
Yeah, that's a hard problem.
I'll re-read Per's ideas. I also like runtime linking via libltdl, *if*
we can avoid the class symbol references that cause undefined symbols at
link time. Ideally instead of a link failure you'd have a
ClassNotFoundException at runtime, just like the JDK.
Perhaps I'll investigate why -fno-assume-compiled doesn't work.
Jeff