unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#65778] [PATCH] gnu: makefile2graph: fix cross-compile.
@ 2023-09-06 10:25 Zheng Junjie
  2023-09-14 20:58 ` bug#65778: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Zheng Junjie @ 2023-09-06 10:25 UTC (permalink / raw)
  To: 65778

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1453 bytes --]

* gnu/packages/code.scm (makefile2graph): fix cross-compile.
[arguments]: Use gexp and CC-FOR-TARGET.
---
 gnu/packages/code.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 9cdda2b751..3e91392ef8 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2021 lu hui <luhuins@163.com>
 ;;; Copyright © 2021, 2022 Foo Chuan Wei <chuanwei.foo@hotmail.com>
 ;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de>
+;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -769,11 +770,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")

base-commit: 6113e0529d61df7425f64e30a6bf77f7cfdfe5a5
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#65778: [PATCH] gnu: makefile2graph: fix cross-compile.
  2023-09-06 10:25 [bug#65778] [PATCH] gnu: makefile2graph: fix cross-compile Zheng Junjie
@ 2023-09-14 20:58 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-09-14 20:58 UTC (permalink / raw)
  To: Zheng Junjie; +Cc: 65778-done

Zheng Junjie <zhengjunjie@iscas.ac.cn> skribis:

> * gnu/packages/code.scm (makefile2graph): fix cross-compile.
> [arguments]: Use gexp and CC-FOR-TARGET.

Applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-14 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-06 10:25 [bug#65778] [PATCH] gnu: makefile2graph: fix cross-compile Zheng Junjie
2023-09-14 20:58 ` bug#65778: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).