diff options
author | Efraim Flashner <[email protected]> | 2020-11-16 14:03:05 +0200 |
---|---|---|
committer | Efraim Flashner <[email protected]> | 2020-11-16 14:03:05 +0200 |
commit | 40e9545632c6a5f508fb0651d1481dc9e09c82b3 (patch) | |
tree | 8b607ef9b57183d4faad702e034ee807382d3706 | |
parent | 6cc86492dbec84a3d50ea395395332ed864de2ae (diff) |
gnu: unifdef: Cross compile.
* gnu/packages/c.scm (unifdef)[arguments]: Use cc-for-target in
make-flags.
-rw-r--r-- | gnu/packages/c.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index 4069bd8124..c49c311fd0 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2016, 2017, 2018, 2019 Ricardo Wurmus <[email protected]> ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <[email protected]> ;;; Copyright © 2018, 2019 Pierre Neidhardt <[email protected]> -;;; Copyright © 2019 Efraim Flashner <[email protected]> +;;; Copyright © 2019, 2020 Efraim Flashner <[email protected]> ;;; Copyright © 2019 Guillaume Le Vaillant <[email protected]> ;;; Copyright © 2019 Andreas Enge <[email protected]> ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <[email protected]> @@ -28,6 +28,7 @@ (define-module (gnu packages c) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) @@ -518,7 +519,8 @@ replacement for the syslog() call, but retains its ease of use.") (arguments `(#:phases (modify-phases %standard-phases (delete 'configure)) - #:make-flags (list "CC=gcc" (string-append "prefix=" %output)) + #:make-flags (list (string-append "CC=" ,(cc-for-target)) + (string-append "prefix=" %output)) #:tests? #f)) ;no test suite (native-inputs `(("perl" ,perl))) |