mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
eglibc: check for required distro features
If users accidently override the DISTRO_FEATURES in local.conf,
then build failures occur for lack of libc functions.
All features in DISTRO_FEATURES_LIBC should be in DISTRO_FEATURES.
That's why this patch let the recipe inherit distro_features_check
class and set REQUIRED_DISTRO_FEATURES to "${DISTRO_FEATURES_LIBC}".
[YOCTO #6381]
(From OE-Core rev: 82d9d12a3364914a5c1f354671adac1f0a71eea3)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -38,9 +38,14 @@ DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial libgcc-initial linux-libc-headers
|
|||||||
#RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
|
#RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
|
||||||
PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
|
PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
|
||||||
PROVIDES += "virtual/libintl virtual/libiconv"
|
PROVIDES += "virtual/libintl virtual/libiconv"
|
||||||
inherit autotools texinfo
|
inherit autotools texinfo distro_features_check
|
||||||
require eglibc-options.inc
|
require eglibc-options.inc
|
||||||
|
|
||||||
|
# The main purpose of setting this variable is to prevent users from accidently
|
||||||
|
# overriding DISTRO_FEATRUES, causing obscure build failures because of lack
|
||||||
|
# of libc functions.
|
||||||
|
REQUIRED_DISTRO_FEATURES = "${DISTRO_FEATURES_LIBC}"
|
||||||
|
|
||||||
LEAD_SONAME = "libc.so"
|
LEAD_SONAME = "libc.so"
|
||||||
|
|
||||||
CACHED_CONFIGUREVARS += " \
|
CACHED_CONFIGUREVARS += " \
|
||||||
|
|||||||
Reference in New Issue
Block a user