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:
parent
ac2fc13406
commit
319a73e7b6
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue