Description: Fix CFLAGS typo in groups.o build rule
 Correct the misspelled variable CGLAGS to CFLAGS in the groups.o rule of
 src/Makefile.linux so that groups.c is compiled with the same flags as the
 other objects. This makes the debian/rules -std=gnu11 setting (needed to
 build with gcc-15, where the C23 bool keyword conflicts with the upstream
 "typedef int bool;") take effect for groups.c too.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-09-04

--- jamnntpd-1.3.orig/src/Makefile.linux
+++ jamnntpd-1.3/src/Makefile.linux
@@ -31,7 +31,7 @@ sockio.o : sockio.c
 	$(CC) $(CPPFLAGS) $(CFLAGS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(PLATFORMDEF) -c sockio.c -o sockio.o
 
 groups.o : groups.c 
-	$(CC) $(CGLAGS) $(PLATFORMDEF) -c groups.c -o groups.o
+	$(CC) $(CFLAGS) $(PLATFORMDEF) -c groups.c -o groups.o
 
 misc.o : misc.c 
 	$(CC) $(CPPFLAGS) $(CFLAGS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(PLATFORMDEF) -c misc.c -o misc.o
