[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50077] [PATCH v2 2/3] gnu: notmuch: Make cross-compilable.
From: |
Xinglu Chen |
Subject: |
[bug#50077] [PATCH v2 2/3] gnu: notmuch: Make cross-compilable. |
Date: |
Sat, 04 Sep 2021 11:41:53 +0200 |
* gnu/packages/mail.scm (notmuch)[arguments]<#:phases>: Use 'cc-for-target'
instead of 'gcc'.
---
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 eb141c5984..173982cb12 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1358,7 +1358,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"))
@@ -1375,7 +1375,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")))))
--
2.33.0
bug#50077: [PATCH v2 0/3] Improvements to Notmuch, Nicolas Goaziou, 2021/09/14