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.master
parent
ac2fc13406
commit
319a73e7b6
|
@ -203,7 +203,15 @@ memory contents between them.")
|
||||||
`(("libpng" ,libpng)
|
`(("libpng" ,libpng)
|
||||||
("libsndfile" ,libsndfile)))
|
("libsndfile" ,libsndfile)))
|
||||||
(arguments
|
(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
|
#:tests? #f ; no tests
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
|
Reference in New Issue