[LON-CAPA-cvs] cvs: loncom /cgi/mimeTeX commands /homework/caparesponse Makefile.PL capa/capa51/pProj Makefile
raeburn
raeburn at source.lon-capa.org
Sun Jul 5 17:24:47 EDT 2026
raeburn Sun Jul 5 21:24:47 2026 EDT
Modified files:
/capa/capa51/pProj Makefile
/loncom/homework/caparesponse Makefile.PL
/loncom/cgi/mimeTeX commands
Log:
- Support Fedora 44 which uses gcc 16 (for which default is C23 standard) by
including -std=gnu17 in compiler flags.
Index: capa/capa51/pProj/Makefile
diff -u capa/capa51/pProj/Makefile:1.26 capa/capa51/pProj/Makefile:1.27
--- capa/capa51/pProj/Makefile:1.26 Thu Oct 30 22:13:38 2025
+++ capa/capa51/pProj/Makefile Sun Jul 5 21:24:44 2026
@@ -73,7 +73,8 @@
LinuxFLAG=-O2 -Wall $(DEF)
GCCVER = $(shell gcc -dumpversion)
-ifeq ($(GCCVER),15)
+GCCMIN = 15
+ifeq ($(GCCMIN),$(word 1,$(sort $(GCCMIN) $(GCCVER))))
CCSTD = -std=gnu17
endif
Index: loncom/homework/caparesponse/Makefile.PL
diff -u loncom/homework/caparesponse/Makefile.PL:1.15 loncom/homework/caparesponse/Makefile.PL:1.16
--- loncom/homework/caparesponse/Makefile.PL:1.15 Thu Oct 30 22:13:38 2025
+++ loncom/homework/caparesponse/Makefile.PL Sun Jul 5 21:24:44 2026
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# makefile for capa wrapper
#
-# $Id: Makefile.PL,v 1.15 2025/10/30 22:13:38 raeburn Exp $
+# $Id: Makefile.PL,v 1.16 2026/07/05 21:24:44 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -53,7 +53,7 @@
},
'OBJECT' => 'capa_wrap.o caparesponse.o capaFunctions/*.o' # Object files
);
-if ($gccver == 15) {
+if ($gccver >= 15) {
$WriteMakefileArgs{'CCFLAGS'} = '-std=gnu17';
}
WriteMakefile(%WriteMakefileArgs);
Index: loncom/cgi/mimeTeX/commands
diff -u loncom/cgi/mimeTeX/commands:1.4 loncom/cgi/mimeTeX/commands:1.5
--- loncom/cgi/mimeTeX/commands:1.4 Thu Oct 30 21:50:22 2025
+++ loncom/cgi/mimeTeX/commands Sun Jul 5 21:24:47 2026
@@ -1,7 +1,7 @@
#!/bin/sh
gccver=`gcc -dumpversion`
gccstd="";
-if [[ $gccver=="15" ]];
+if (( gccver >= 15 ));
then
gccstd="-std=gnu17"
fi
More information about the LON-CAPA-cvs
mailing list