]> code.ossystems Code Review - openembedded-core.git/commit
glibc: Avoid multilibbing on wordsize.h
authorDaniel Díaz <daniel.diaz@linaro.org>
Wed, 25 Jul 2018 18:35:34 +0000 (13:35 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2018 12:16:31 +0000 (13:16 +0100)
commita74c77d6168101e88c3a3bce7130f4f52cfab95d
treed7cd23de6154c3baa959c30d980164d44df64924
parent69844643aa1b829c27f144db634c8223c18c783f
glibc: Avoid multilibbing on wordsize.h

Once another header #includes <bits/wordsize.h>, there is a
potential recursion going on because the
multilib_header_wrapper.h #includes <bits/wordsize.h> again!

This should not happen because an __arm__ (32-bits) or an
__aarch64__ (64-bits) environment guarantees that we will
be getting the correct definition, but when building against
a different target (like BPF), recursion is what happens.

This can be seen, for instance, when building eBPF programs
from the kernel with `clang -target bpf', such as the ones
located in linux/tools/testing/selftests/bpf/.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glibc/glibc-package.inc