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>
This commit is contained in:
		
							parent
							
								
									fe98dfe439
								
							
						
					
					
						commit
						dceb7b0c3c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1378,7 +1378,7 @@ invoking @command{notifymuch} from the post-new hook.") | ||||||
|                         (("/bin/sh") (which "sh"))))) |                         (("/bin/sh") (which "sh"))))) | ||||||
|                   (replace 'configure |                   (replace 'configure | ||||||
|                     (lambda* (#:key outputs #:allow-other-keys) |                     (lambda* (#:key outputs #:allow-other-keys) | ||||||
|                       (setenv "CC" "gcc") |                       (setenv "CC" ,(cc-for-target)) | ||||||
|                       (setenv "CONFIG_SHELL" (which "sh")) |                       (setenv "CONFIG_SHELL" (which "sh")) | ||||||
| 
 | 
 | ||||||
|                       (let* ((out (assoc-ref outputs "out")) |                       (let* ((out (assoc-ref outputs "out")) | ||||||
|  | @ -1395,7 +1395,7 @@ invoking @command{notifymuch} from the post-new hook.") | ||||||
|                         (("\\$NOTMUCH_GMIME_X509_CERT_VALIDITY") "0")))) |                         (("\\$NOTMUCH_GMIME_X509_CERT_VALIDITY") "0")))) | ||||||
|                   (add-before 'check 'prepare-test-environment |                   (add-before 'check 'prepare-test-environment | ||||||
|                     (lambda _ |                     (lambda _ | ||||||
|                       (setenv "TEST_CC" "gcc") |                       (setenv "TEST_CC" ,(cc-for-target)) | ||||||
|                       ;; Patch various inline shell invocations. |                       ;; Patch various inline shell invocations. | ||||||
|                       (substitute* (find-files "test" "\\.sh$") |                       (substitute* (find-files "test" "\\.sh$") | ||||||
|                         (("/bin/sh") (which "sh"))))) |                         (("/bin/sh") (which "sh"))))) | ||||||
|  |  | ||||||
		Reference in a new issue