gnu: alpine: Support cross-gcc'ing.
authorTobias Geerinckx-Rice <me@tobias.gr>
Sun, 17 May 2020 00:51:04 +0000 (02:51 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Sun, 17 May 2020 00:52:56 +0000 (02:52 +0200)
* gnu/packages/mail.scm (alpine)[arguments]: Use ${target}-gcc when
cross-compiling.

gnu/packages/mail.scm

index 6e39dc2..e6728aa 100644 (file)
@@ -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")