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.
This commit is contained in:
Arun Isaac 2020-05-30 00:01:57 +05:30
parent ac2fc13406
commit 319a73e7b6
No known key found for this signature in database
GPG key ID: 2E25EE8B61802BB3

View file

@ -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