diff --git a/gnu/packages/nvi.scm b/gnu/packages/nvi.scm index 0ab81809469..5366c17e57b 100644 --- a/gnu/packages/nvi.scm +++ b/gnu/packages/nvi.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2014 Marek Benc ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2024 Herman Rimm +;;; Copyright © 2025 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,9 +75,14 @@ #$@(if (%current-target-system) '("vi_cv_sprintf_count=yes") '())) - #:make-flags #~(list "CFLAGS=-g -O2 -Wno-incompatible-pointer-types\ - -Wno-implicit-function-declaration") - + #:make-flags + #~(list + ;; Add CFLAGS to relax gcc-14's strictness. + ;; nvi's configure chokes on passing CFLAGS and ignores + ;; CFLAGS set in the environment. + (string-append "CFLAGS=-g -O2" + " -Wno-error=implicit-function-declaration" + " -Wno-error=incompatible-pointer-types")) #:phases #~(modify-phases %standard-phases (add-before 'configure 'fix-configure