]> code.ossystems Code Review - openembedded-core.git/commit
bison: fix the parallel build
authorMingli Yu <mingli.yu@windriver.com>
Thu, 14 May 2020 07:39:36 +0000 (15:39 +0800)
committerSteve Sakoman <steve@sakoman.com>
Thu, 21 May 2020 19:07:40 +0000 (09:07 -1000)
commit99ddfee2a2434d282749e2062987067f70b0ef54
tree39ed31c2ee99587293c6ff1b067b99a2e5c378a4
parentda7360247995d7c8e79dfcaa0c0761952a9013f1
bison: fix the parallel build

Explicitly make the BUILT_SOURCES which
are the generated headers such as stdio.h,
fcntl.h and etc to be the dependencies of
the gl_LIBOBJS such as libbison_a-sprintf.o,
libbison_a-printf.o and etc to guarantee the
BUILT_SOURCES is generated before begin to
compile EXTRA_lib_libbison_a_SOURCES such as
fprintf.c in parallel builid, otherwise there
may come below error:
 | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'

It does the same for src_bison_OBJECTS and
lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
generated before begin to compile src_bison_SOURCES
which contains AnnotationList.c and etc.

BTW, the MOSTLYCLEANFILES also contains the
generated header needs to be created early
in the build process, so add it also in to
avoid below error:
 | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such file or directory

[YOCTO #13825]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
(cherry picked from commit 43d74b11095092b13f94074785d0306484fabea6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch [new file with mode: 0644]
meta/recipes-devtools/bison/bison_3.5.3.bb