mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 20:15:25 -06:00
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 Modified-by: Zheng Junjie <z572@z572.online>
This commit is contained in:
parent
5239ec21fd
commit
10ed768407
1 changed files with 9 additions and 3 deletions
|
|
@ -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,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue