PR 39899: gjdoc in 4.4.0 fails to build the libgcj documentation

Andrew Haley aph@redhat.com
Tue Apr 28 08:52:00 GMT 2009


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)



More information about the Java-patches mailing list