all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#67067] [PATCH] gnu: nkf: fix cross-compilation.
@ 2023-11-11  9:49 Zheng Junjie
  2023-11-25 13:34 ` bug#67067: " Mathieu Othacehe
  0 siblings, 1 reply; 2+ messages in thread
From: Zheng Junjie @ 2023-11-11  9:49 UTC (permalink / raw)
  To: 67067

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1933 bytes --]

* gnu/packages/textutils.scm (nkf): fix cross-compilation.
[arguments]: use Gexp and CC-FOR-TARGET.

Change-Id: Idd2cbdd89d4ce2feb484a6005e06f1eba491feea
---
 gnu/packages/textutils.scm | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 41a34b6c4e..801d8fd8ad 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -27,6 +27,7 @@
 ;;; Copyright © 2022 Gabriel Wicki <gabriel@erlikon.ch>
 ;;; Copyright © 2023 Reza Housseini <reza@housseini.me>
 ;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
+;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1289,13 +1290,14 @@ (define-public nkf
                   "0anw0knr1iy4p9w3d3b3pbwzh1c43p1i2q4c28kw9zviw8kx2rly"))))
       (build-system gnu-build-system)
       (arguments
-       `(#:tests? #f ; test for perl module
-         #:make-flags (list "CC=gcc" "CFLAGS=-O2 -Wall -pedantic"
-                            (string-append "prefix=" %output)
-                            "MKDIR=mkdir -p")
-         #:phases
-         (modify-phases %standard-phases
-           (delete 'configure)))) ; No ./configure script
+       (list #:tests? #f ; test for perl module
+             #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+                                  "CFLAGS=-O2 -Wall -pedantic"
+                                  (string-append "prefix=" #$output)
+                                  "MKDIR=mkdir -p")
+             #:phases
+             #~(modify-phases %standard-phases
+                 (delete 'configure)))) ; No ./configure script
       (home-page "https://ja.osdn.net/projects/nkf/")
       (synopsis "Network Kanji Filter")
       (description "Nkf is yet another kanji code converter among networks,

base-commit: 61c527227ceebdad8da2d52214b253a48323cbb9
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#67067: [PATCH] gnu: nkf: fix cross-compilation.
  2023-11-11  9:49 [bug#67067] [PATCH] gnu: nkf: fix cross-compilation Zheng Junjie
@ 2023-11-25 13:34 ` Mathieu Othacehe
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Othacehe @ 2023-11-25 13:34 UTC (permalink / raw)
  To: Zheng Junjie; +Cc: 67067-done


> * gnu/packages/textutils.scm (nkf): fix cross-compilation.

Applied, thanks,

Mathieu




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-25 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-11  9:49 [bug#67067] [PATCH] gnu: nkf: fix cross-compilation Zheng Junjie
2023-11-25 13:34 ` bug#67067: " Mathieu Othacehe

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.