mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: freeipmi: Fix build with gcc-14.
* gnu/packages/freeipmi.scm (freeipmi)[arguments]: Add CFLAGS to #:configure-flags to relax gcc-14's strictness. Change-Id: I468eab233af14ee41f50fed851bd3e107f8ba617
This commit is contained in:
parent
992e27ef85
commit
c7ed6aea71
1 changed files with 25 additions and 21 deletions
|
|
@ -2,6 +2,7 @@
|
|||
;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2015, 2016, 2017, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2019–2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
|
@ -41,27 +42,30 @@
|
|||
"1bwc5gz3985fly84ap1yq8jkddkf6s5px2dinmswxx9r8qsrr4nn"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(append (if (and (%current-target-system)
|
||||
(target-riscv64?))
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'update-config-scripts
|
||||
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||
;; Replace outdated config.guess and config.sub.
|
||||
(for-each (lambda (file)
|
||||
(install-file
|
||||
(search-input-file
|
||||
(or native-inputs inputs)
|
||||
(string-append "/bin/" file)) "config"))
|
||||
'("config.guess" "config.sub"))))))
|
||||
'())
|
||||
(list #:configure-flags #~'("--disable-static"
|
||||
#$@(if (%current-target-system)
|
||||
;; We cannot check for these devices
|
||||
;; when cross compiling.
|
||||
`("ac_cv_file__dev_random=yes"
|
||||
"ac_cv_file__dev_urandom=yes")
|
||||
'())))))
|
||||
(append
|
||||
(if (and (%current-target-system)
|
||||
(target-riscv64?))
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'update-config-scripts
|
||||
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||
;; Replace outdated config.guess and config.sub.
|
||||
(for-each (lambda (file)
|
||||
(install-file
|
||||
(search-input-file
|
||||
(or native-inputs inputs)
|
||||
(string-append "/bin/" file)) "config"))
|
||||
'("config.guess" "config.sub"))))))
|
||||
'())
|
||||
(list #:configure-flags
|
||||
#~'("CFLAGS=-g -O2 -Wno-error=implicit-function-declaration"
|
||||
"--disable-static"
|
||||
#$@(if (%current-target-system)
|
||||
;; We cannot check for these devices
|
||||
;; when cross compiling.
|
||||
`("ac_cv_file__dev_random=yes"
|
||||
"ac_cv_file__dev_urandom=yes")
|
||||
'())))))
|
||||
(native-inputs
|
||||
(if (and (%current-target-system)
|
||||
(target-riscv64?))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue