libstdc++47: Fix c++config.h race
authorJohn Marino <draco@marino.st>
Mon, 1 Oct 2012 12:52:03 +0000 (14:52 +0200)
committerJohn Marino <draco@marino.st>
Mon, 1 Oct 2012 12:52:03 +0000 (14:52 +0200)
With high job numbers, sometimes c++config.h would get included before
it finished getting generated.  Solve this race by using "depend all"
which should ensure c++config.h gets generated before anything else
in libstdc++ starts to build.

gnu/lib/gcc47/libstdc++/Makefile

index 93d3bf5..b94ce6c 100644 (file)
@@ -278,4 +278,6 @@ CLEANFILES+=        atomicity.cc basic_file.cc c++locale.cc \
                ctype_configure_char.cc unwind.h \
                cp-demangle.c debug-cxx.cc tree-cxx.cc
 
                ctype_configure_char.cc unwind.h \
                cp-demangle.c debug-cxx.cc tree-cxx.cc
 
+depend all: bits/c++config.h
+
 .include <bsd.lib.mk>
 .include <bsd.lib.mk>