gnu: mpv: Prepare for cross-compilation.

* gnu/packages/video.scm (mpv)[arguments]: Use CC-FOR-TARGET.
This commit is contained in:
Tobias Geerinckx-Rice 2022-10-16 02:00:01 +02:00
parent 9eea2db6ae
commit 188acd0aac
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -2188,7 +2188,7 @@ (define-public mpv
(add-before 'configure 'set-up-waf (add-before 'configure 'set-up-waf
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(copy-file (search-input-file inputs "bin/waf") "waf") (copy-file (search-input-file inputs "bin/waf") "waf")
(setenv "CC" "gcc")))) (setenv "CC" #$(cc-for-target)))))
#:configure-flags #:configure-flags
#~(list "--enable-libmpv-shared" #~(list "--enable-libmpv-shared"
"--enable-cdda" "--enable-cdda"