diff options
author | Zheng Junjie <[email protected]> | 2023-09-06 18:25:53 +0800 |
---|---|---|
committer | Ludovic Courtès <[email protected]> | 2023-09-14 22:58:25 +0200 |
commit | 258729b928e14f0349a109d0a9a1d56a8e68e139 (patch) | |
tree | 85692df1096f3214648a967b69472d03fb7a6f3c /gnu | |
parent | 55da0930e30e0ee1b3da1b9aee5851e9ccfca32c (diff) |
gnu: makefile2graph: fix cross-compile.
* gnu/packages/code.scm (makefile2graph): fix cross-compile.
[arguments]: Use gexp and CC-FOR-TARGET.
Signed-off-by: Ludovic Courtès <[email protected]>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/code.scm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 1c21ad475b..4335c57150 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2021 lu hui <[email protected]> ;;; Copyright © 2021, 2022 Foo Chuan Wei <[email protected]> ;;; Copyright © 2022 Michael Rohleder <[email protected]> +;;; Copyright © 2023 Zheng Junjie <[email protected]> ;;; ;;; This file is part of GNU Guix. ;;; @@ -773,11 +774,13 @@ produce colored output.") (base32 "1gjfk3d8qg3cla7qd2y7r9s03whlfwy83q8k76xfcnqrjjfavdgk")))) (build-system gnu-build-system) (arguments - '(#:test-target "test" - #:make-flags (list "CC=gcc" (string-append "prefix=" %output)) - #:phases - (modify-phases %standard-phases - (delete 'configure)))) + (list + #:test-target "test" + #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "prefix=" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure)))) (native-inputs (list graphviz)) (home-page "https://github.com/lindenb/makefile2graph") |