mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
gnu: xxhash: Cross-compile.
* gnu/packages/digest.scm (xxhash)[arguments]: Use CC-FOR-TARGET.
This commit is contained in:
parent
85eec227e1
commit
9c1324a416
1 changed files with 4 additions and 3 deletions
|
@ -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 @@ (define-module (gnu packages digest)
|
|||
#: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 @@ (define-public xxhash
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue