Java Patches: -fno-org-xml-sax and -fno-org-w3c-dom

Jeff Sturm jsturm@one-point.com
Sun Dec 1 15:07:00 GMT 2002


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



More information about the Gcc-patches mailing list