summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-05-14 08:15:50 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-15 08:57:16 +0100
commitc6827c53f056d4663db9f484396461c85ab183da (patch)
treee4b4c49dcd5e62383726ac7a71190cdb06e544b0
parent2f36d912d4cb12d51c13f685fb712a241a27baf7 (diff)
downloadpoky-c6827c53f056d4663db9f484396461c85ab183da.tar.gz
elfutils: Disable stringop-overflow warning for build host
Some distributions shipping gcc12 end up with stringop-overflow warnings e.g. /usr/include/bits/unistd.h:74:10: error: ‘__pread_alias’ specified size between 9223372036854775813 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=] 74 | return __glibc_fortify (pread, __nbytes, sizeof (char), | ^~~~~~~~~~~~~~~ Until fixed, lets not treat this warning as hard error (From OE-Core rev: bb76fe2baf00b0874d221445c9fba4481740024f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.187.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.187.bb b/meta/recipes-devtools/elfutils/elfutils_0.187.bb
index d20220e433..31983dfd6b 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.187.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.187.bb
@@ -33,6 +33,8 @@ PTEST_ENABLED:libc-musl = "0"
33 33
34EXTRA_OECONF = "--program-prefix=eu-" 34EXTRA_OECONF = "--program-prefix=eu-"
35 35
36BUILD_CFLAGS += "-Wno-error=stringop-overflow"
37
36DEPENDS_BZIP2 = "bzip2-replacement-native" 38DEPENDS_BZIP2 = "bzip2-replacement-native"
37DEPENDS_BZIP2:class-target = "bzip2" 39DEPENDS_BZIP2:class-target = "bzip2"
38 40