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 7699af7915
commit 65f159ce14
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -60,6 +60,7 @@
;;; Copyright © 2024 hapster <o.rojon@posteo.net>
;;; Copyright © 2024 Nikita Domnitskii <nikita@domnitskii.me>
;;; Copyright © 2024 Ashish SHUKLA <ashish.is@lostca.se>
;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@ -3149,7 +3150,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