From e4b36ac1d427f01f2a172bba0e36b53355380f77 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 3 Nov 2021 02:47:24 +0100 Subject: gnu: moreutils: Prepare for cross-compilation. * gnu/packages/moreutils.scm (moreutils)[arguments]: Use CC-FOR-TARGET. --- gnu/packages/moreutils.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3