Skip to contentSkip to conversation

m4: Stick to C17 standard

PATCH New Khem Raj 1 participant 1 message Mar 15, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 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

---
 meta/recipes-devtools/m4/m4-1.4.19.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/m4/m4-1.4.19.inc +2 -0
index 8fb13f543b2..6a6aa21dafe 100644
@@ -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