aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-05-17 02:51:04 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-05-17 02:52:56 +0200
commitaa784dc850fd683ade4dee7f2e2ad630e604b432 (patch)
tree09717d5194c03601b6ef4fd7df02e8ee9496c64d /gnu
parentd28692a7b512d1d0a2e6b48aa83095f373969abd (diff)
downloadpatches-aa784dc850fd683ade4dee7f2e2ad630e604b432.tar
patches-aa784dc850fd683ade4dee7f2e2ad630e604b432.tar.gz
gnu: alpine: Support cross-gcc'ing.
* gnu/packages/mail.scm (alpine)[arguments]: Use ${target}-gcc when cross-compiling.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/mail.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 6e39dc2d15..e6728aae94 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -2703,7 +2703,11 @@ operators and scripters.")
#t))))
(build-system gnu-build-system)
(arguments
- `(#:make-flags (list "CC=gcc")
+ `(#:make-flags
+ (let ((target ,(%current-target-system)))
+ (list (string-append "CC=" (if target
+ (string-append target "-gcc")
+ "gcc"))))
#:configure-flags (list (string-append "--with-ssl-include-dir="
(assoc-ref %build-inputs "openssl")
"/include/openssl")