summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2020-05-14 17:12:54 +0200
committerGuillaume Le Vaillant <glv@posteo.net>2020-05-14 17:17:47 +0200
commit19e8a754181e78acde3ee8e0d201d4fe02d604f9 (patch)
tree8a9c51149c022fd74054e1f3d734c62c1584bed8 /gnu/packages
parentac4847ebaf1ed22cf9c0fe3c0ed2e5123777cace (diff)
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/radio.scm12
1 files changed, 7 insertions, 5 deletions
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index cbfb068e3c..123357a2bc 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -1016,13 +1016,15 @@ gain and standing wave ratio.")
("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/")))