This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Libiberty parallel build broken
- From: DJ Delorie <dj at redhat dot com>
- To: drow at mvista dot com
- Cc: gcc-bugs at gcc dot gnu dot org, dj at redhat dot com
- Date: Tue, 20 Nov 2001 19:17:47 -0500
- Subject: Re: Libiberty parallel build broken
- References: <20011120111418.A25762@nevyn.them.org>
[Get raw message]
I think serialization is the way to go. Please try this patch.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/Makefile.in,v
retrieving revision 1.70
diff -p -3 -r1.70 Makefile.in
*** Makefile.in 2001/10/16 02:50:13 1.70
--- Makefile.in 2001/11/21 00:19:09
*************** stamp-h: config.in config.status
*** 300,309 ****
config.status: $(srcdir)/configure $(srcdir)/config.table
$(SHELL) ./config.status --recheck
all-subdir check-subdir installcheck-subdir info-subdir \
install-info-subdir clean-info-subdir dvi-subdir install-subdir \
etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
! maintainer-clean-subdir:
@subdirs='$(SUBDIRS)'; \
target=`echo $@ | sed -e 's/-subdir//'`; \
for dir in $$subdirs ; do \
--- 300,312 ----
config.status: $(srcdir)/configure $(srcdir)/config.table
$(SHELL) ./config.status --recheck
+ # Depending on config.h makes sure that config.status has been re-run
+ # if needed. This prevents problems with parallel builds, in case
+ # subdirectories need to run config.status also.
all-subdir check-subdir installcheck-subdir info-subdir \
install-info-subdir clean-info-subdir dvi-subdir install-subdir \
etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
! maintainer-clean-subdir: config.h
@subdirs='$(SUBDIRS)'; \
target=`echo $@ | sed -e 's/-subdir//'`; \
for dir in $$subdirs ; do \