This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Libiberty parallel build broken

[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 \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]