summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-systemd
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2021-06-03 19:10:40 +0200
committerArmin Kuster <akuster808@gmail.com>2021-06-06 20:37:34 -0700
commitf8bd86c9b2f7ed5d15e04af585258987410ab89e (patch)
tree848dd0e361531cf79ce53b32e1961479c65643ea /meta-python/recipes-devtools/python/python-systemd
parent9362c5078db4ac2a21b698a65ca92b87e87164d0 (diff)
downloadmeta-openembedded-f8bd86c9b2f7ed5d15e04af585258987410ab89e.tar.gz
nss: Fix build on Centos 7
Centos 7 has glibc 2.18 and nss-native build fails due to implicit declaration of function putenv during build. This is because of the Feature Test Macro Requirements for glibc (see feature_test_macros(7)): putenv(): _XOPEN_SOURCE || /* Glibc since 2.19: */ _DEFAULT_SOURCE || /* Glibc versions <= 2.19: */ _SVID_SOURCE and because nss coreconf/Linux.mk only defines -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE So on such system with glibc 2.18, neither macro makes putenv() available. Add -D_XOPEN_SOURCE for the Centos 7 and glibc 2.18 native build case. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Armin Kuster <akuster808@gmail.com> Cc: Armin Kuster <akuster@mvista.com> Cc: Khem Raj <raj.khem@gmail.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Ross Burton <ross.burton@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 30148b33b5d750702d7749ac59d8d740d8cb7024) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-systemd')
0 files changed, 0 insertions, 0 deletions