me
/
guix
Archived
1
0
Fork 0

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.
master
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
1 changed files with 7 additions and 5 deletions

View File

@ -1016,13 +1016,15 @@ gain and standing wave ratio.")
("rtl-sdr" ,rtl-sdr))) ("rtl-sdr" ,rtl-sdr)))
(arguments (arguments
`(#:test-target "test" `(#:test-target "test"
#:make-flags
(let ((target ,(%current-target-system)))
(list (string-append "CC=" (if target
(string-append target "-gcc")
"gcc"))
"BLADERF=no"))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'configure (delete 'configure)
(lambda _
(setenv "CC" "gcc")
(setenv "BLADERF" "no")
#t))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((bin (string-append (assoc-ref outputs "out") "/bin/"))) (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))