]> Git Repo - buildroot-mgba.git/commit
Makefile: really generate glibc locales in parallel
author[email protected] <[email protected]>
Fri, 14 Oct 2022 11:18:25 +0000 (13:18 +0200)
committerYann E. MORIN <[email protected]>
Fri, 21 Oct 2022 18:59:54 +0000 (20:59 +0200)
commit4164ed24f277b24096ab065aa85b7de9d0c80c02
tree89239d856f08bcd3911b87a6c8a97a7c8620f5db
parent2c9ef36242341b5f8db171251d737d29fc376e0c
Makefile: really generate glibc locales in parallel

To generate the glibc locale data, we call into a recursive Makefile,
so as to generate locales in parallel. This is done as part of a
target-finalize hook.

However, that hook is registered after all packages have been parsed,
and as such, it maye be registered after hooks defined in packages.

Furthermore, the expansion of target-finalize hooks is done in a recipe,
so it is not easy to understand whether this generates a "simple" rule
or not.

As a consequence, despite the use of $(MAKE), make may not notice that
the command is a recursive call, and will decide to close the jobserver
file-descriptors, yielding warnings like:
    make[2]: warning: jobserver unavailable: using -j1.  Add '+' to
    parent make rule.

This causes the lcoale data to not be generated in parallel, which is
initially all the fuss about using a sub-makefile...

So, do as suggested, and prepend the hook with a '+', so that it is
explicit to make that it should not close its jobserver fds.

Fixes: 6fbdf5159607 (Makefile: Parallelize glibc locale generation)
Signed-off-by: Yann E. MORIN <[email protected]>
Cc: Gleb Mazovetskiy <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Makefile
This page took 0.031615 seconds and 4 git commands to generate.