From 319a73e7b63ab939bd357666245c14ff241d0c1f Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 30 May 2020 00:01:57 +0530 Subject: gnu: aptdec: Do not hard-code CC=gcc. * gnu/packages/radio.scm (aptdec)[arguments]: Do not hard-code CC=gcc in the make-flags. Use the compiler appropriate for the target. --- gnu/packages/radio.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index 53eb3da147..d18af8f75c 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -203,7 +203,15 @@ (define-public aptdec `(("libpng" ,libpng) ("libsndfile" ,libsndfile))) (arguments - `(#:make-flags (list "CC=gcc") + `(#:make-flags + (list + (string-append "CC=" + (if ,(%current-target-system) + (string-append (assoc-ref %build-inputs "cross-gcc") + "/bin/" ,(%current-target-system) "-gcc") + "gcc")) + (string-append "PREFIX=" %output) + (string-append "RPM_BUILD_ROOT=" %output)) #:tests? #f ; no tests #:phases (modify-phases %standard-phases -- cgit v1.2.3