diff options
author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2025-01-01 11:46:51 +0100 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-03-31 10:48:05 +0200 |
commit | 8f8f33e1de9c11b151ca7995309b60d8da64e5e8 (patch) | |
tree | a2a5dc0a151d13ffa1068607b1ca70f9255d090a | |
parent | fdc0c21612709042199325ddb8429c79053cbe78 (diff) |
gnu: nvi: Fix build with gcc-14.
* gnu/packages/nvi.scm (nvi)[arguments]: Add CFLAGS to #:make-flags to relax
gcc-14's strictness.
Change-Id: I8572a13360c1571c5afe29789061d6277d1fb977
-rw-r--r-- | gnu/packages/nvi.scm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/packages/nvi.scm b/gnu/packages/nvi.scm index 0ab8180946..430ced42bf 100644 --- a/gnu/packages/nvi.scm +++ b/gnu/packages/nvi.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2014 Marek Benc <merkur32@gmail.com> ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2024 Herman Rimm <herman@rimm.ee> +;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,9 +75,13 @@ #$@(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 + ;; 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 |