guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: notmuch: Make cross-compilable.


From: guix-commits
Subject: 02/03: gnu: notmuch: Make cross-compilable.
Date: Tue, 14 Sep 2021 03:05:22 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit dceb7b0c3c35fe7cdcb2f8b9116ad047f7affad4
Author: Xinglu Chen <public@yoctocell.xyz>
AuthorDate: Sat Sep 4 11:41:53 2021 +0200

    gnu: notmuch: Make cross-compilable.
    
    * gnu/packages/mail.scm (notmuch)[arguments]<#:phases>: Use 'cc-for-target'
      instead of 'gcc'.
    
    Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
 gnu/packages/mail.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index ed56338..43de6e1 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1378,7 +1378,7 @@ invoking @command{notifymuch} from the post-new hook.")
                         (("/bin/sh") (which "sh")))))
                   (replace 'configure
                     (lambda* (#:key outputs #:allow-other-keys)
-                      (setenv "CC" "gcc")
+                      (setenv "CC" ,(cc-for-target))
                       (setenv "CONFIG_SHELL" (which "sh"))
 
                       (let* ((out (assoc-ref outputs "out"))
@@ -1395,7 +1395,7 @@ invoking @command{notifymuch} from the post-new hook.")
                         (("\\$NOTMUCH_GMIME_X509_CERT_VALIDITY") "0"))))
                   (add-before 'check 'prepare-test-environment
                     (lambda _
-                      (setenv "TEST_CC" "gcc")
+                      (setenv "TEST_CC" ,(cc-for-target))
                       ;; Patch various inline shell invocations.
                       (substitute* (find-files "test" "\\.sh$")
                         (("/bin/sh") (which "sh")))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]