summary refs log tree commit diff
path: root/gnu/packages/digest.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-06-29 15:31:07 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-06-29 15:47:11 +0200
commit9c1324a4164eb7bf3a912b185b2ab9c86447e005 (patch)
tree8f3f8fd32a0d33f163e42d93311dfa3c1069c4a9 /gnu/packages/digest.scm
parent85eec227e1b056e808719b0db7756c4aa9745704 (diff)
downloadguix-9c1324a4164eb7bf3a912b185b2ab9c86447e005.tar.gz
gnu: xxhash: Cross-compile.
* gnu/packages/digest.scm (xxhash)[arguments]: Use CC-FOR-TARGET.
Diffstat (limited to 'gnu/packages/digest.scm')
-rw-r--r--gnu/packages/digest.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/packages/digest.scm b/gnu/packages/digest.scm
index 1a9d58c0d3..53cf261219 100644
--- a/gnu/packages/digest.scm
+++ b/gnu/packages/digest.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2017, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -20,7 +20,8 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix git-download)
-  #:use-module (guix build-system gnu))
+  #:use-module (guix build-system gnu)
+  #:use-module (guix utils))
 
 (define-public xxhash
   (package
@@ -38,7 +39,7 @@
     (build-system gnu-build-system)
     (arguments
      `(#:make-flags
-       (list "CC=gcc"
+       (list ,(string-append "CC=" (cc-for-target))
              "XXH_FORCE_MEMORY_ACCESS=1" ; improved performance with GCC
              (string-append "prefix=" (assoc-ref %outputs "out")))
        #:phases