diff options
author | Guillaume Le Vaillant <glv@posteo.net> | 2020-05-14 17:12:54 +0200 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2020-05-14 17:17:47 +0200 |
commit | 19e8a754181e78acde3ee8e0d201d4fe02d604f9 (patch) | |
tree | 8a9c51149c022fd74054e1f3d734c62c1584bed8 | |
parent | ac4847ebaf1ed22cf9c0fe3c0ed2e5123777cace (diff) | |
download | guix-19e8a754181e78acde3ee8e0d201d4fe02d604f9.tar.gz |
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.
-rw-r--r-- | gnu/packages/radio.scm | 12 |
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/"))) |