summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-08-13 02:29:57 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-08-13 16:09:41 +0200
commit3a176be045c262047892806e3db6335b43d49c1d (patch)
tree0f20365a552ae625e350f803b3dc07d78ba7f882
parent7d98468cecdf026182c30ced63a44bbbfb361847 (diff)
downloadguix-3a176be045c262047892806e3db6335b43d49c1d.tar.gz
gnu: aha: Cross-compile.
* gnu/packages/textutils.scm (aha)[arguments]: Use CC-FOR-TARGET.
-rw-r--r--gnu/packages/textutils.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index c5798cf5c1..6ee3442c76 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -46,6 +46,7 @@
   #:use-module (guix build-system go)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system python)
+  #:use-module (guix utils)
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages base)
@@ -1160,10 +1161,10 @@ This package provides Python bindings.")
        (file-name (git-file-name name version))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases
+     `(#:phases
        (modify-phases %standard-phases
          (delete 'configure))
-       #:make-flags (list "CC=gcc"
+       #:make-flags (list (string-append "CC=" ,(cc-for-target))
                           (string-append "PREFIX="
                                          (assoc-ref %outputs "out")))
        #:tests? #f))                    ; no test suite