Subject: [PATCH 5/7] gnu: cgit: Use cc-for-target.

From: Arun Isaac <[email-masked]>
Date: Fri, 18 Aug 2023 10:03:17 +0100

* gnu/packages/version-control.scm (cgit)[arguments]: Use cc-for-target.
---
 gnu/packages/version-control.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index e2afd92286..398194252e 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1041,7 +1041,8 @@ (define-public cgit
     (arguments
      (list #:tests? #f ; XXX: fail to build the in-source git.
            #:test-target "test"
-           #:make-flags #~(list "CC=gcc" "SHELL_PATH=sh")
+           #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+                                "SHELL_PATH=sh")
            #:phases
            #~(modify-phases %standard-phases
                (add-after 'unpack 'unpack-git
-- 
2.39.2