gnu: dpf-plugins: Prepare for cross-compilation.

* gnu/packages/music.scm (dpf-plugins)[arguments]: Set CC in #:make-flags
rather than as an environment variable, and set it to CC-FOR-TARGET.
This commit is contained in:
Tobias Geerinckx-Rice 2021-10-20 15:21:30 +02:00
parent 2e8795cf0c
commit 214fb9fbfd
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -6283,11 +6283,10 @@ (define-public dpf-plugins
(arguments (arguments
`(#:tests? #f ; no "check" target `(#:tests? #f ; no "check" target
#:make-flags #:make-flags
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))) (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
(string-append "CC=" ,(cc-for-target)))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'build 'set-CC-variable
(lambda _ (setenv "CC" "gcc") #t))
(delete 'configure)))) (delete 'configure))))
(inputs (inputs
`(("cairo" ,cairo) `(("cairo" ,cairo)