diff options
author | Arun Isaac <arunisaac@systemreboot.net> | 2020-05-30 00:01:57 +0530 |
---|---|---|
committer | Arun Isaac <arunisaac@systemreboot.net> | 2020-05-30 00:01:57 +0530 |
commit | 319a73e7b63ab939bd357666245c14ff241d0c1f (patch) | |
tree | 70e0fff5a8383d98818e27662268c46ac30382ae /gnu | |
parent | ac2fc1340647298874f35b4be5861d1e437d0a24 (diff) |
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')
-rw-r--r-- | gnu/packages/radio.scm | 10 |
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 |