z572 pushed a commit to branch master
in repository guix.

commit 734e83d4fafef11715eaada596e45c560d537f2e
Author: Zheng Junjie <[email protected]>
AuthorDate: Sat Aug 17 16:16:38 2024 +0800

    gnu: chrony: Fix cross-compilation.
    
    * gnu/packages/ntp.scm (chrony)[arguments]<#:phases>: Add set-CC phase.
    
    Change-Id: I0bc7c271875c5ba68743583fb3932e238b3b37c0
---
 gnu/packages/ntp.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm
index 30f3e32beb..cb9fdaa09f 100644
--- a/gnu/packages/ntp.scm
+++ b/gnu/packages/ntp.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2021 Brice Waegeneire <[email protected]>
 ;;; Copyright © 2022 Petr Hodina <[email protected]>
 ;;; Copyright © 2024 Artyom V. Poptsov <[email protected]>
+;;; Copyright © 2024 Zheng Junjie <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -73,6 +74,9 @@
               "--with-user=chrony")
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'set-CC
+            (lambda _
+              (setenv "CC" #$(cc-for-target))))
           (add-after 'unpack 'stay-inside-out
             ;; Simply setting CHRONYVARDIR to something nonsensical at install
             ;; time would result in nonsense file names in man pages.

Reply via email to