head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.4 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.2 pkgsrc-2025Q4-base:1.1; locks; strict; comment @# @; 1.1 date 2025.10.17.22.07.48; author mrg; state Exp; branches; next ; commitid 8TvrmdYvZ6p6jYeG; desc @@ 1.1 log @fix build with GCC 14. this one is annoying. initially, it fails as it force sets "CFLAGS=-O" i an sub-make that tries to compile invalid in gcc 14 default code. the patch to src/Makefile is to pass down CFLAGS as CFLAGS. the "configure"-alike setup here absolutely requires to turn off the new errors as it explicitly abuses that old C feature to find what symbols do or don't exist. as such, just add -Wno-implicit-int -Wno-implicit-function-declaration to CFLAGS with GCC 14, and this builds again. @ text @$NetBSD$ --- unix/unix.mak.orig 2025-09-27 22:03:33.206737661 -0700 +++ unix/unix.mak 2025-09-27 22:05:31.100813679 -0700 @@@@ -109,7 +109,7 @@@@ regexp.o: $(BUILDERS) config.h cd ./regexp; \ - $(MAKE) CC='$(CC)' CFLAGS='-O' O=o regexp.o >err 2>&1 || \ + $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS)' O=o regexp.o >err 2>&1 || \ { cat err; rm err; exit 1; } rm regexp/err mv regexp/regexp.o . @