From: Khem Raj Date: Thu, 21 Aug 2025 22:42:56 +0000 (+0200) Subject: m4: Stick to C17 standard X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94ec72b332dce71a2756560ddf738f864e3c853d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git m4: Stick to C17 standard GCC15 imposes C23 by default and 1.4.19 release has gnulib version which can not be compiled without errors, while new release of m4 is in progress we might use C17 until then and use GCC15 to compile it For scarthgap also add it in BUILD_CFLAGS. Signed-off-by: Khem Raj Signed-off-by: Richard Purdie Signed-off-by: Steve Sakoman --- diff --git a/meta/recipes-devtools/m4/m4-1.4.19.inc b/meta/recipes-devtools/m4/m4-1.4.19.inc index fcc9e582701..4b1f8476640 100644 --- a/meta/recipes-devtools/m4/m4-1.4.19.inc +++ b/meta/recipes-devtools/m4/m4-1.4.19.inc @@ -30,6 +30,9 @@ EXTRA_OECONF += "--without-libsigsegv-prefix" EXTRA_OEMAKE += "'infodir=${infodir}'" +CFLAGS += "-std=gnu17" +BUILD_CFLAGS += "-std=gnu17" + do_compile_ptest() { cd ${B}/tests sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_LIBRARIES) $(check_PROGRAMS)' Makefile