diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-03-15 00:29:46 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-17 17:09:22 +0000 |
commit | 78609596c6a11a533dc039d040a8762545a237b4 (patch) | |
tree | 71c5bb858c2a837abf51a392ab763725dfb82545 /meta/recipes-devtools/m4 | |
parent | c140e7c4dba2ba860542887e84e7f8499fcef800 (diff) | |
download | poky-78609596c6a11a533dc039d040a8762545a237b4.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
(From OE-Core rev: b99f5c44aaa925bdc2a0534458dcb95d1514dc66)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/m4')
-rw-r--r-- | meta/recipes-devtools/m4/m4-1.4.19.inc | 2 |
1 files changed, 2 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 8fb13f543b..6a6aa21daf 100644 --- a/meta/recipes-devtools/m4/m4-1.4.19.inc +++ b/meta/recipes-devtools/m4/m4-1.4.19.inc | |||
@@ -27,6 +27,8 @@ EXTRA_OECONF += "--without-libsigsegv-prefix" | |||
27 | 27 | ||
28 | EXTRA_OEMAKE += "'infodir=${infodir}'" | 28 | EXTRA_OEMAKE += "'infodir=${infodir}'" |
29 | 29 | ||
30 | CFLAGS += "-std=gnu17" | ||
31 | |||
30 | do_compile_ptest() { | 32 | do_compile_ptest() { |
31 | cd ${B}/tests | 33 | cd ${B}/tests |
32 | sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_LIBRARIES) $(check_PROGRAMS)' Makefile | 34 | sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_LIBRARIES) $(check_PROGRAMS)' Makefile |