[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/09: gnu: nkf: Fix cross-compilation.
From: |
guix-commits |
Subject: |
05/09: gnu: nkf: Fix cross-compilation. |
Date: |
Sat, 25 Nov 2023 08:48:25 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit f982e290f04f611d6f23367781c73346b77ea14f
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Sat Nov 11 17:49:04 2023 +0800
gnu: nkf: Fix cross-compilation.
* gnu/packages/textutils.scm (nkf): Fix cross-compilation.
[arguments]: Use gexp and CC-FOR-TARGET.
Change-Id: Idd2cbdd89d4ce2feb484a6005e06f1eba491feea
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
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 @@ Mainland China, Taiwan, and Hong-Kong.")
"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,
- branch master updated (6bf19a63d8 -> 6e4914a037), guix-commits, 2023/11/25
- 03/09: gnu: xcompmgr: Fix cross-compilation., guix-commits, 2023/11/25
- 06/09: gnu: odt2txt: Fix cross-compilation., guix-commits, 2023/11/25
- 05/09: gnu: nkf: Fix cross-compilation.,
guix-commits <=
- 09/09: gnu: Add qtrvsim., guix-commits, 2023/11/25
- 01/09: gnu: kbdd: Fix cross-compilation., guix-commits, 2023/11/25
- 04/09: gnu: protobuf: Fix cross-compilation., guix-commits, 2023/11/25
- 08/09: gnu: zix: Update to 0.4.2., guix-commits, 2023/11/25
- 02/09: gnu: smu: Fix cross-compilation., guix-commits, 2023/11/25
- 07/09: gnu: daikichi: Fix cross-compilation., guix-commits, 2023/11/25