me
/
guix
Archived
1
0
Fork 0

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
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
1 changed files with 9 additions and 1 deletions

View File

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