This is the mail archive of the gcc-patches@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]

A patch for libio


On a very fast SMP machine, stamp-picdir/$(PICDIR) may not yet finish
before others which depend on starts during a parallel build. As the
result, the "pic" directory doesn't exist when it is used. This patch
adds the dependencies to stamp-picdir/$(PICDIR) for those which depend
on it.

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
--
Tue Jan 26 12:07:13 1999  H.J. Lu  (hjl@gnu.org)

	* Makefile.in (iostream.list): Remove dependency on
	stamp-picdir.
	($(LIBIOSTREAM_DEP)): Depend on stamp-picdir.

	* config.shared (all): Make $(PICDIR) concurrent.

diff -ur ../../../import/egcs-1.1.1/egcs/libio/Makefile.in ./Makefile.in
--- ../../../import/egcs-1.1.1/egcs/libio/Makefile.in	Fri Jun 26 22:24:20 1998
+++ ./Makefile.in	Tue Jan 26 12:06:30 1999
@@ -88,8 +88,10 @@
 tpipe: tpipe.o libio.a
 	$(CC) $(CFLAGS) -o tpipe tpipe.o libio.a
 
-iostream.list: stamp-picdir $(_G_CONFIG_H) $(LIBIOSTREAM_DEP)
+iostream.list: $(_G_CONFIG_H) $(LIBIOSTREAM_DEP)
 	@echo "$(LIBIOSTREAM_USE)"> iostream.list
+
+$(LIBIOSTREAM_DEP): stamp-picdir
 
 stmp-stdio:
 	@rootme=`pwd`/ ; export rootme; cd stdio ; \
diff -ur ../../../import/egcs-1.1.1/egcs/libio/config.shared ./config.shared
--- ../../../import/egcs-1.1.1/egcs/libio/config.shared	Thu Jun 25 19:13:51 1998
+++ ./config.shared	Tue Jan 26 12:37:04 1999
@@ -79,6 +79,7 @@
 
 echo 'bindir = $(exec_prefix)/bin'
 echo 'libdir = $(exec_prefix)/lib'
+echo 'libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)'
 
 echo 'datadir = $(prefix)/lib'
 echo 'mandir = $(prefix)/man'
@@ -179,12 +180,13 @@
   fi
 fi
 
-ALL='$(PICDIR)'" ${ALL}"
-
 echo >&2 "all: ${ALL} multi-all"
 if [ "${SUBDIRS}" != "" ] ; then
   echo >&2 '	@rootme=`pwd`/; export rootme; \'
   echo >&2 '	$(MAKE) "DODIRS=$(SUBDIRS)" DO=all $(FLAGS_TO_PASS) subdir_do'
+fi
+if [ "${LIBDIR}" = "yes" ]; then
+  echo >&2 "${ALL} "'multi-all: $(PICDIR)'
 fi
 echo >&2 '.PHONY: all'
 echo >&2 ''


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