]> code.ossystems Code Review - openembedded-core.git/commit
gcc-4.9.inc: fix parallel building failure
authorHongxu Jia <hongxu.jia@windriver.com>
Tue, 29 Jul 2014 02:02:02 +0000 (10:02 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 2 Aug 2014 08:21:13 +0000 (09:21 +0100)
commitaea4b2d58856226c471922dfa40650cba2f5a36a
tree6eb783ccc96d652661d98d51adc38ed86774d138
parent7986adeac16550b33f65fded39a55f668e0e543f
gcc-4.9.inc: fix parallel building failure

The gcc-ar.o, gcc-nm.o, gcc-ranlib.o and errors.o included
config.h which was a generated file. But no explicity rule
to clarify the dependency. There was potential building
failure while parallel make.

For gcc-ar.o, gcc-nm.o and gcc-ranlib.o, they were compiled from one C
source file gcc-ar.c, we add them to ALL_HOST_BACKEND_OBJS, so the
'$(ALL_HOST_OBJS) : | $(generated_files)' rule could work for these
objects.

For errors.o, it is part of gengtype, and the gengtype generator program
is special: Two versions are built. One is for the build machine, and one
is for the host. We refered what gengtype-parse.o did (which also is part
of gengtype).

[YOCTO #6568]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/gcc/gcc-4.9/0054-gcc-Makefile.in-fix-parallel-building-failure.patch