summary refs log tree commit diff
path: root/gnu/packages/radio.scm
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2020-05-30 00:01:57 +0530
committerArun Isaac <arunisaac@systemreboot.net>2020-05-30 00:01:57 +0530
commit319a73e7b63ab939bd357666245c14ff241d0c1f (patch)
tree70e0fff5a8383d98818e27662268c46ac30382ae /gnu/packages/radio.scm
parentac2fc1340647298874f35b4be5861d1e437d0a24 (diff)
downloadguix-319a73e7b63ab939bd357666245c14ff241d0c1f.tar.gz
gnu: aptdec: Do not hard-code CC=gcc.
* gnu/packages/radio.scm (aptdec)[arguments]: Do not hard-code CC=gcc in the
make-flags. Use the compiler appropriate for the target.
Diffstat (limited to 'gnu/packages/radio.scm')
-rw-r--r--gnu/packages/radio.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 53eb3da147..d18af8f75c 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -203,7 +203,15 @@ memory contents between them.")
      `(("libpng" ,libpng)
        ("libsndfile" ,libsndfile)))
     (arguments
-     `(#:make-flags (list "CC=gcc")
+     `(#:make-flags
+       (list
+        (string-append "CC="
+                       (if ,(%current-target-system)
+                           (string-append (assoc-ref %build-inputs "cross-gcc")
+                                          "/bin/" ,(%current-target-system) "-gcc")
+                           "gcc"))
+        (string-append "PREFIX=" %output)
+        (string-append "RPM_BUILD_ROOT=" %output))
        #:tests? #f ; no tests
        #:phases
        (modify-phases %standard-phases