diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-08-22 00:42:56 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-09-01 08:30:56 -0700 |
commit | 9bea9b739490da27646baf21777c76e15b801422 (patch) | |
tree | 8a4f59297cc3284f24e708f5eed29ee3f11590ba | |
parent | b63fff4544c7e2033d689c686de9ab7aeef6a253 (diff) | |
download | poky-9bea9b739490da27646baf21777c76e15b801422.tar.gz |
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.
(From OE-Core rev: 94ec72b332dce71a2756560ddf738f864e3c853d)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-devtools/m4/m4-1.4.19.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/m4/m4-1.4.19.inc b/meta/recipes-devtools/m4/m4-1.4.19.inc index fcc9e58270..4b1f847664 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" | |||
30 | 30 | ||
31 | EXTRA_OEMAKE += "'infodir=${infodir}'" | 31 | EXTRA_OEMAKE += "'infodir=${infodir}'" |
32 | 32 | ||
33 | CFLAGS += "-std=gnu17" | ||
34 | BUILD_CFLAGS += "-std=gnu17" | ||
35 | |||
33 | do_compile_ptest() { | 36 | do_compile_ptest() { |
34 | cd ${B}/tests | 37 | cd ${B}/tests |
35 | sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_LIBRARIES) $(check_PROGRAMS)' Makefile | 38 | sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_LIBRARIES) $(check_PROGRAMS)' Makefile |