summaryrefslogtreecommitdiff
path: root/gnu/packages/mail.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2023-07-09 02:00:01 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2023-07-09 02:00:03 +0200
commit57995527394a04abc48bf89b9678cc35a9836662 (patch)
tree3bd46204130129f7fc82d8ced790a9caf26dd3f7 /gnu/packages/mail.scm
parentbce8c88f42b0fb26a11fa134d10baad626441fd0 (diff)
gnu: altermime: Cross-compile.
* gnu/packages/mail.scm (altermime)[arguments]: Use CC-FOR-TARGET. Add a new 'do-not-strip phase.
Diffstat (limited to 'gnu/packages/mail.scm')
-rw-r--r--gnu/packages/mail.scm8
1 files 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