gnu: dump1090: Don't hard-code CC=gcc.
* gnu/packages/radio.scm (dump1090)[arguments]: Add 'make-flags' field to set 'CC' to the right compiler, remove 'configure' phase.
This commit is contained in:
parent
ac4847ebaf
commit
19e8a75418
1 changed files with 7 additions and 5 deletions
|
@ -1016,13 +1016,15 @@ (define-public dump1090
|
|||
("rtl-sdr" ,rtl-sdr)))
|
||||
(arguments
|
||||
`(#:test-target "test"
|
||||
#:make-flags
|
||||
(let ((target ,(%current-target-system)))
|
||||
(list (string-append "CC=" (if target
|
||||
(string-append target "-gcc")
|
||||
"gcc"))
|
||||
"BLADERF=no"))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
(lambda _
|
||||
(setenv "CC" "gcc")
|
||||
(setenv "BLADERF" "no")
|
||||
#t))
|
||||
(delete 'configure)
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
|
||||
|
|
Loading…
Reference in a new issue