summary refs log tree commit diff
path: root/gnu/packages/toys.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-10-16 16:45:44 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-10-16 17:16:00 +0200
commit834ab06477ff06ae8b3660bb6296ad0739036356 (patch)
treebc7007e4e402a691dc77f7fc049e7f1f77903c11 /gnu/packages/toys.scm
parent95328851aee375d9582a9fbf5c69e52dd15c06cd (diff)
downloadguix-834ab06477ff06ae8b3660bb6296ad0739036356.tar.gz
gnu: filters: Prepare for cross-compilation.
* gnu/packages/toys.scm (filters)[arguments]: Use CC-FOR-TARGET.
Diffstat (limited to 'gnu/packages/toys.scm')
-rw-r--r--gnu/packages/toys.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/packages/toys.scm b/gnu/packages/toys.scm
index 459c0c4953..eb727a4192 100644
--- a/gnu/packages/toys.scm
+++ b/gnu/packages/toys.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2019 Jesse Gibbons <jgibbons2357+guix@gmail.com>
 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
 ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
@@ -32,7 +32,8 @@
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
-  #:use-module (guix packages))
+  #:use-module (guix packages)
+  #:use-module (guix utils))
 
 (define-public sl
   (package
@@ -101,7 +102,8 @@ typing @command{sl} instead of @command{ls}.")
       (build-system gnu-build-system)
       (arguments
        `(#:make-flags
-         (list "CC=gcc" (string-append "DESTDIR=" %output))
+         (list (string-append "CC=" ,(cc-for-target))
+               (string-append "DESTDIR=" %output))
          #:phases
          (modify-phases %standard-phases
            (delete 'configure)