summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-11-03 02:47:24 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2021-11-03 11:19:55 +0100
commite4b36ac1d427f01f2a172bba0e36b53355380f77 (patch)
tree8ec49fc683dcc036b0ff6c36d46965befcb87287
parentf10ccdd91a51e84591eea65af328aed629670f07 (diff)
downloadguix-e4b36ac1d427f01f2a172bba0e36b53355380f77.tar.gz
gnu: moreutils: Prepare for cross-compilation.
* gnu/packages/moreutils.scm (moreutils)[arguments]: Use CC-FOR-TARGET.
-rw-r--r--gnu/packages/moreutils.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/packages/moreutils.scm b/gnu/packages/moreutils.scm
index 81738677b6..8a31a0f676 100644
--- a/gnu/packages/moreutils.scm
+++ b/gnu/packages/moreutils.scm
@@ -23,6 +23,7 @@
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
+  #:use-module (guix utils)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages docbook))
@@ -66,7 +67,7 @@
                             (assoc-ref %build-inputs "docbook-xsl") "/xml/xsl/"
                             ,(package-name docbook-xsl) "-"
                             ,(package-version docbook-xsl))
-             "CC=gcc")))
+             (string-append "CC=" ,(cc-for-target)))))
     (home-page "https://joeyh.name/code/moreutils/")
     (synopsis "Miscellaneous general-purpose command-line tools")
     (description