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 <ludo@gnu.org>
This commit is contained in:
parent
55da0930e3
commit
258729b928
|
@ -17,6 +17,7 @@
|
||||||
;;; Copyright © 2021 lu hui <luhuins@163.com>
|
;;; Copyright © 2021 lu hui <luhuins@163.com>
|
||||||
;;; Copyright © 2021, 2022 Foo Chuan Wei <chuanwei.foo@hotmail.com>
|
;;; Copyright © 2021, 2022 Foo Chuan Wei <chuanwei.foo@hotmail.com>
|
||||||
;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de>
|
;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de>
|
||||||
|
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -773,10 +774,12 @@ (define-public makefile2graph
|
||||||
(base32 "1gjfk3d8qg3cla7qd2y7r9s03whlfwy83q8k76xfcnqrjjfavdgk"))))
|
(base32 "1gjfk3d8qg3cla7qd2y7r9s03whlfwy83q8k76xfcnqrjjfavdgk"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "test"
|
(list
|
||||||
#:make-flags (list "CC=gcc" (string-append "prefix=" %output))
|
#:test-target "test"
|
||||||
|
#:make-flags #~(list (string-append "CC=" #$(cc-for-target))
|
||||||
|
(string-append "prefix=" #$output))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(delete 'configure))))
|
(delete 'configure))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list graphviz))
|
(list graphviz))
|
||||||
|
|
Loading…
Reference in a new issue