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:
Guillaume Le Vaillant 2020-05-14 17:12:54 +02:00
parent ac4847ebaf
commit 19e8a75418
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -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/")))