gnu: alpine: Support cross-gcc'ing.

* gnu/packages/mail.scm (alpine)[arguments]: Use ${target}-gcc when
cross-compiling.
This commit is contained in:
Tobias Geerinckx-Rice 2020-05-17 02:51:04 +02:00
parent d28692a7b5
commit aa784dc850
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -2703,7 +2703,11 @@ (define-public alpine
#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")