PATCH: Fix gcc for parallel build

H . J . Lu hjl@lucon.org
Thu Dec 6 09:26:00 GMT 2001


	test -d po || mkdir po

is useless for parallel build on a SMP machine. I will check in this
patch as an obvious fix shortly.


H.J.
----
2001-12-06  H.J. Lu <hjl@gnu.org>

	* Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
	(.po.pox): Likewise.
	(o/$(PACKAGE).pot): Likewise.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.800
diff -u -p -r1.800 Makefile.in
--- Makefile.in	2001/12/05 22:06:28	1.800
+++ Makefile.in	2001/12/06 17:22:48
@@ -3318,7 +3318,7 @@ update-po: $(CATALOGS:.gmo=.pox)
 # N.B. We do not attempt to copy these into $(srcdir).  The snapshot
 # script does that.
 .po.gmo:
-	test -d po || mkdir po
+	-mkdir po
 	$(GMSGFMT) --statistics $< -o $@
 
 # The new .po has to be gone over by hand, so we deposit it into
@@ -3326,7 +3326,7 @@ update-po: $(CATALOGS:.gmo=.pox)
 # If build/po/$(PACKAGE).pot exists, use it (it was just created),
 # else use the one in srcdir.
 .po.pox:
-	test -d po || mkdir po
+	-mkdir po
 	$(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \
 			then echo po/$(PACKAGE).pot; \
 			else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@
@@ -3359,7 +3359,7 @@ install-po:
 # The .pot file is left in the build directory.
 $(PACKAGE).pot: po/$(PACKAGE).pot
 po/$(PACKAGE).pot: force
-	test -d po || mkdir po
+	-mkdir po
 	$(MAKE) po-generated
 	AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \
 		$(XGETTEXT) $(PACKAGE) $(srcdir)



More information about the Gcc-patches mailing list