1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-07 16:59:22 +00:00

libxcrypt: avoid discarded-qualifiers build failure with glibc 2.43

With the glibc 2.43 upgrade, building nativesdk-libxcrypt triggers a
-Wdiscarded-qualifiers warning in crypt-gost-yescrypt.c and
crypt-sm3-yescrypt.c which becomes a build failure due to -Werror.

(From OE-Core rev: 5538c6c4dd64e1360428a98e4a45beab826eec3c)

Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8340d4be03646f0b4b599f768ddc88f502f93615)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
This commit is contained in:
Hemanth Kumar M D
2026-03-12 09:10:19 -07:00
committed by Paul Barker
parent 7076b067e9
commit 8d87b43a4f
@@ -23,6 +23,7 @@ S = "${WORKDIR}/git"
BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir} -Wno-error"
CPPFLAGS:append:class-nativesdk = " -Wno-error"
CFLAGS:append:class-nativesdk = " -Wno-error=discarded-qualifiers"
API = "--disable-obsolete-api"
EXTRA_OECONF += "${API}"