From 214fb9fbfd4d05f1bae79c0619ea02a3bc742528 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 20 Oct 2021 15:21:30 +0200 Subject: 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. --- gnu/packages/music.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 40c86a8e4c..f013ad6d3e 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -6283,11 +6283,10 @@ ones.") (arguments `(#:tests? #f ; no "check" target #: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 (modify-phases %standard-phases - (add-before 'build 'set-CC-variable - (lambda _ (setenv "CC" "gcc") #t)) (delete 'configure)))) (inputs `(("cairo" ,cairo) -- cgit v1.2.3