aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/")))