gnu: portmidi: Fix build with gcc-14.

* gnu/packages/music.scm (portmidi)[arguments]: Add CMAKE_C_FLAGS to #:configure-flags
to relax gcc-14's strictness.

Change-Id: I35e8a4d0c8d6db7b76af011b064cc356e95614f2
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-03 10:58:56 +01:00
parent 89ef1c5149
commit ea1b0b87e9
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -59,6 +59,7 @@
;;; Copyright © 2024 Parnikkapore <poomklao@yahoo.com>
;;; Copyright © 2024 hapster <o.rojon@posteo.net>
;;; Copyright © 2024 Nikita Domnitskii <nikita@domnitskii.me>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@ -3095,7 +3096,8 @@ (define-public portmidi
`(#:tests? #f ; tests cannot be linked
#:build-type "Release" ; needed to have PMALSA set
#:configure-flags
(list "-DPORTMIDI_ENABLE_JAVA=Off"
(list "-DCMAKE_C_FLAGS=-Wno-error=implicit-function-declaration"
"-DPORTMIDI_ENABLE_JAVA=Off"
"-DPORTMIDI_ENABLE_TEST=Off") ; tests fail linking
#:phases
(modify-phases %standard-phases