A gcc/f Makefile patch

H.J. Lu hjl@lucon.org
Tue Aug 11 16:18:00 GMT 1998


Without this patch, g77.o may not be built with parallel build on
SMP.

-- 
H.J. Lu (hjl@gnu.org)
---
Tue Aug 11 08:12:14 1998  H.J. Lu  (hjl@gnu.org)

	* Make-lang.in (g77.o): Touch lang-f77 before checking it.

Index: Make-lang.in
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/f/Make-lang.in,v
retrieving revision 1.1.1.28
diff -u -r1.1.1.28 Make-lang.in
--- Make-lang.in	1998/08/10 18:00:45	1.1.1.28
+++ Make-lang.in	1998/08/11 23:06:32
@@ -93,6 +93,10 @@
 # to track changes to the toplevel gcc Makefile as well.
 # We depend on g77.c last, to make it obvious where it came from.
 g77.o: $(CONFIG_H) multilib.h config.status $(lang_specs_files) g77.c
+	case "$(LANGUAGES)" in \
+	  *[fF]77*) touch lang-f77;; \
+	  *) rm -f lang-f77;; \
+	esac
 	if [ -f lang-f77 ]; then \
 	  $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(DRIVER_DEFINES) \
 	   -DLANG_SPECIFIC_DRIVER -c g77.c; \



More information about the Gcc-patches mailing list