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 ;;; Copyright © 2021, 2022 Foo Chuan Wei ;;; Copyright © 2022 Michael Rohleder +;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -773,11 +774,13 @@ (define-public makefile2graph (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")