]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
m4: Stick to C17 standard
authorKhem Raj <raj.khem@gmail.com>
Sat, 15 Mar 2025 07:29:46 +0000 (00:29 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Mar 2025 16:35:53 +0000 (16:35 +0000)
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/m4/m4-1.4.19.inc

index 8fb13f543b21a6751aee529dba9e3081305165ec..6a6aa21dafe5fc7c8e02747d17029b0efbb2ca45 100644 (file)
@@ -27,6 +27,8 @@ EXTRA_OECONF += "--without-libsigsegv-prefix"
 
 EXTRA_OEMAKE += "'infodir=${infodir}'"
 
+CFLAGS += "-std=gnu17"
+
 do_compile_ptest() {
        cd ${B}/tests
        sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_LIBRARIES) $(check_PROGRAMS)' Makefile