diff options
| author | Xinglu Chen <public@yoctocell.xyz> | 2021-09-04 11:41:53 +0200 |
|---|---|---|
| committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-09-14 09:04:36 +0200 |
| commit | dceb7b0c3c35fe7cdcb2f8b9116ad047f7affad4 (patch) | |
| tree | d0c1e2a073ea6905b016e6904ddae3bfd5c58ae2 /gnu | |
| parent | fe98dfe439b60798ffa2127f02554787a2bbe87e (diff) | |
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>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/mail.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index ed563382188..43de6e13548 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm | |||
| @@ -1378,7 +1378,7 @@ invoking @command{notifymuch} from the post-new hook.") | |||
| 1378 | (("/bin/sh") (which "sh"))))) | 1378 | (("/bin/sh") (which "sh"))))) |
| 1379 | (replace 'configure | 1379 | (replace 'configure |
| 1380 | (lambda* (#:key outputs #:allow-other-keys) | 1380 | (lambda* (#:key outputs #:allow-other-keys) |
| 1381 | (setenv "CC" "gcc") | 1381 | (setenv "CC" ,(cc-for-target)) |
| 1382 | (setenv "CONFIG_SHELL" (which "sh")) | 1382 | (setenv "CONFIG_SHELL" (which "sh")) |
| 1383 | 1383 | ||
| 1384 | (let* ((out (assoc-ref outputs "out")) | 1384 | (let* ((out (assoc-ref outputs "out")) |
| @@ -1395,7 +1395,7 @@ invoking @command{notifymuch} from the post-new hook.") | |||
| 1395 | (("\\$NOTMUCH_GMIME_X509_CERT_VALIDITY") "0")))) | 1395 | (("\\$NOTMUCH_GMIME_X509_CERT_VALIDITY") "0")))) |
| 1396 | (add-before 'check 'prepare-test-environment | 1396 | (add-before 'check 'prepare-test-environment |
| 1397 | (lambda _ | 1397 | (lambda _ |
| 1398 | (setenv "TEST_CC" "gcc") | 1398 | (setenv "TEST_CC" ,(cc-for-target)) |
| 1399 | ;; Patch various inline shell invocations. | 1399 | ;; Patch various inline shell invocations. |
| 1400 | (substitute* (find-files "test" "\\.sh$") | 1400 | (substitute* (find-files "test" "\\.sh$") |
| 1401 | (("/bin/sh") (which "sh"))))) | 1401 | (("/bin/sh") (which "sh"))))) |
