diff -ruN orig/gophervr/gophervr/Imakefile.linux patched/gophervr/gophervr/Imakefile.linux --- orig/gophervr/gophervr/Imakefile.linux 2013-02-18 15:09:04.000000000 -0800 +++ patched/gophervr/gophervr/Imakefile.linux 2026-05-13 17:14:51.720142716 -0700 @@ -2,7 +2,7 @@ CDEBUGFLAGS = -g -O #CDEBUGFLAGS = -O #CC = gcc -CFLAGS = -g -O3 -I../gopher -I../gopher/object -I../libvogl/src -I/usr/OpenMotif/include +CFLAGS = -g -O2 -std=gnu89 -Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=incompatible-pointer-types -fcommon -I../gopher -I../gopher/object -I../libvogl/src -I/usr/OpenMotif/include INCLUDES = -I../gopher -I../gopher/object -I../libvogl/src BURROWOBJS = burrower.o menus.o lcube.o globals.o text.o \ diff -ruN orig/gophervr/Makefile patched/gophervr/Makefile --- orig/gophervr/Makefile 2015-10-24 15:30:51.000000000 -0700 +++ patched/gophervr/Makefile 2026-05-13 17:14:28.863838684 -0700 @@ -30,10 +30,15 @@ (cd gophervr; cp Imakefile.sgi Imakefile; xmkmf; $(MAKE) $(MFLAGS)) +# Flags to coax 2015-era K&R-style C through gcc 14+/15+ (which by +# default treats `f()` as `f(void)` and promotes several long-standing +# warnings to errors). See README in the regarding_someodd build bundle. +LEGACY_CFLAGS = -g -O2 -std=gnu89 -Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=incompatible-pointer-types -fcommon + linux: - (cd gopher ; ./configure ) - (cd gopher/object ; make all ) - (cd libtracker; $(MAKE) $(MFLAGS) MACHINE=linux) + (cd gopher ; CFLAGS="$(LEGACY_CFLAGS)" ./configure ) + (cd gopher/object ; $(MAKE) $(MFLAGS) all ) + (cd libtracker; $(MAKE) $(MFLAGS) MACHINE=linux CFLAGS="$(LEGACY_CFLAGS)") (cd libvogl; $(MAKE) $(MFLAGS) linux) (cd gophervr; cp Imakefile.linux Imakefile ; xmkmf && $(MAKE) $(MFLAGS))