[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: aptdec: Do not hard-code CC=gcc.
From: |
guix-commits |
Subject: |
02/02: gnu: aptdec: Do not hard-code CC=gcc. |
Date: |
Fri, 29 May 2020 14:41:34 -0400 (EDT) |
arunisaac pushed a commit to branch master
in repository guix.
commit 319a73e7b63ab939bd357666245c14ff241d0c1f
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Sat May 30 00:01:57 2020 +0530
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.
---
gnu/packages/radio.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 53eb3da..d18af8f 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