From 852fc23b12d4a701ba724a40b6afd4d40a4ad68d Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Tue, 15 Apr 2025 02:13:06 -0400 Subject: [PATCH] luci-lua-runtime: specify c17 standard build was failing b/c gcc15 defaults to c23, which lemon is not written for (and errors with). Signed-off-by: Andrew Robbins --- modules/luci-lua-runtime/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-lua-runtime/src/Makefile b/modules/luci-lua-runtime/src/Makefile index 9dbaff4ee0..462270db8c 100644 --- a/modules/luci-lua-runtime/src/Makefile +++ b/modules/luci-lua-runtime/src/Makefile @@ -2,7 +2,7 @@ $(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC) -DNDEBUG -c -o $@ $< contrib/lemon: contrib/lemon.c contrib/lempar.c - cc -o contrib/lemon $< + cc -std=gnu17 -o contrib/lemon $< plural_formula.c: plural_formula.y contrib/lemon ./contrib/lemon -q $<