mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
gnu: mplayer: Fix build with gcc-14.
* gnu/packages/video.scm (mplayer)[arguments]: In stage "configure", fixup "CFLAGS" in "config.mak" to relax gcc-14's strictness. Change-Id: I21e66222770182bfdb09092ef04b372d12690710
This commit is contained in:
parent
12621b69c2
commit
e33bc081cf
1 changed files with 9 additions and 1 deletions
|
@ -2624,7 +2624,15 @@ (define-public mplayer
|
|||
(("#! /bin/sh") (string-append "#!" (which "sh"))))
|
||||
(setenv "SHELL" (which "bash"))
|
||||
(setenv "CONFIG_SHELL" (which "bash"))
|
||||
(apply invoke "./configure" configure-flags))))))
|
||||
(apply invoke "./configure" configure-flags)
|
||||
;; Adding CFLAGS to #:configure-flags, or setting it in the
|
||||
;; enviroment does not work. Adding CFLAGS to #:make-flags
|
||||
;; breaks the build.
|
||||
(substitute* "config.mak"
|
||||
(("CFLAGS *=" all)
|
||||
(string-append all
|
||||
" -Wno-error=incompatible-pointer-types"
|
||||
" -Wno-error=int-conversion"))))))))
|
||||
;; FIXME: Add additional inputs once available.
|
||||
(native-inputs
|
||||
(list pkg-config yasm))
|
||||
|
|
Loading…
Reference in a new issue