Eliminate circular dependence on f77-runtime that caused build failures.
authorJim Wilson <wilson@cygnus.com>
Thu, 21 Aug 1997 20:17:25 +0000 (20:17 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 21 Aug 1997 20:17:25 +0000 (13:17 -0700)
* Make-lang.in (f77): Delete f77-runtime.
(f77.all.build, f77.all.cross, f77.rest.encap): Add f77-runtime.

From-SVN: r14873

gcc/f/ChangeLog.egcs
gcc/f/Make-lang.in

index 1a5cf54..f61a0b0 100644 (file)
@@ -1,3 +1,8 @@
+Thu Aug 21 13:15:29 1997  Jim Wilson  <wilson@cygnus.com>
+
+       * Make-lang.in (f77): Delete f77-runtime.
+       (f77.all.build, f77.all.cross, f77.rest.encap): Add f77-runtime.
+
 Wed Aug 20 16:36:59 1997  Jim Wilson  <wilson@cygnus.com>
 
        * intdoc.texi: Readd generated file.
index 666b511..f8fda35 100644 (file)
@@ -96,7 +96,7 @@ G77_CROSS_NAME = `t='$(program_transform_cross_name)'; echo g77 | sed $$t`
 # Note that it would be nice to move the dependency on g77
 # into the F77 rule, but that needs a little bit of work
 # to do the right thing within all.cross.
-F77 f77: f771 f77-runtime
+F77 f77: f771
 
 # Tell GNU make to ignore these if they exist.
 .PHONY: F77 f77 f77-runtime f77-runtime-unsafe f77.all.build f77.all.cross \
@@ -309,10 +309,13 @@ f/runtime/libU77/Makefile: \
 # I'm not sure there's a way of getting f2c into here conditionally on
 # the --enable-f2c flag detected by config-lang.in so kluge it with the
 # maybe-f2c target by looking at STAGESTUFF.
-f77.all.build: g77 maybe-f2c
-f77.all.cross: g77-cross maybe-f2c
+# We need to build the runtime after libgcc.a, so as to avoid a circular
+# dependence on cplib2.ready.  So instead of putting it in LANGUAGES (via
+# the f77 rule), it goes at the end of each all.* build rule.
+f77.all.build: g77 maybe-f2c f77-runtime
+f77.all.cross: g77-cross maybe-f2c f77-runtime
 f77.start.encap: g77 maybe-f2c
-f77.rest.encap:
+f77.rest.encap: f77-runtime
 
 f77.info: $(srcdir)/f/g77.info
 f77.dvi: $(srcdir)/f/g77.dvi