* PR 39899: gjdoc in 4.4.0 fails to build the libgcj documentation
@ 2009-04-28 8:52 Andrew Haley
0 siblings, 0 replies; only message in thread
From: Andrew Haley @ 2009-04-28 8:52 UTC (permalink / raw)
To: Java Patch List
gjdoc is built wrongly, with -fbootstrap-classes. This is invalid
because bootstrap classes cannot depend on any external (i.e. not
part of the core library) classes. Fixed thusly, on trunk and branch.
Andrew.
2009-04-28 Andrew Haley <aph@redhat.com>
* Makefile.am (libgcj_tools_la_LDFLAGS): Add
-fno-bootstrap-classes to libgcj_tools_la_GCJFLAGS.
Index: Makefile.am
===================================================================
--- Makefile.am (revision 145086)
+++ Makefile.am (working copy)
@@ -305,8 +305,15 @@
## compiled.
EXTRA_libgcj_la_SOURCES = java/lang/Object.java
+# We compile libgcj_tools with -findirect-dispatch so that they can
+# depend on external classes. -fno-bootstrap-classes ensures that the
+# tools are loaded by the system class loader rather than the
+# bootstrap class loader: only core library classes should be loaded
+# by the bootstrap loader.
libgcj_tools_la_SOURCES = classpath/tools/tools.zip
-libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch -fno-indirect-classes -fsource-filename=$(here)/classpath/tools/all-classes.lst
+libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch \
+ -fno-bootstrap-classes -fno-indirect-classes \
+ -fsource-filename=$(here)/classpath/tools/all-classes.lst
libgcj_tools_la_LDFLAGS = -rpath $(toolexeclibdir) \
-version-info `grep -v '^\#' $(srcdir)/libtool-version` \
$(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-28 8:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-28 8:52 PR 39899: gjdoc in 4.4.0 fails to build the libgcj documentation Andrew Haley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).