guix-commits
[Top][All Lists]
Advanced

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

07/11: gnu: altermime: Cross-compile.


From: guix-commits
Subject: 07/11: gnu: altermime: Cross-compile.
Date: Fri, 14 Jul 2023 08:19:21 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 57995527394a04abc48bf89b9678cc35a9836662
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 9 02:00:01 2023 +0200

    gnu: altermime: Cross-compile.
    
    * gnu/packages/mail.scm (altermime)[arguments]: Use CC-FOR-TARGET.
    Add a new 'do-not-strip phase.
---
 gnu/packages/mail.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index c72e99dc0d..8728b11b3a 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -839,7 +839,7 @@ Extension (MIME).")
     (arguments
      (list
       #:make-flags
-      #~(list "CC=gcc"
+      #~(list (string-append "CC=" #$(cc-for-target))
               (string-append "PREFIX=" #$output))
       #:tests? #f                       ; there are none
       #:phases
@@ -866,7 +866,11 @@ Extension (MIME).")
           (add-after 'unpack 'disable-Werror
             (lambda _
               (substitute* "Makefile"
-                (("-Werror") "")))))))
+                (("-Werror") ""))))
+          (add-after 'unpack 'do-not-strip
+            (lambda _
+              (substitute* "Makefile"
+                (("\\bstrip\\b") "true")))))))
     (home-page "https://pldaniels.com/altermime/";)
     (synopsis "Modify MIME-encoded messages")
     (description



reply via email to

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