mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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>
This commit is contained in:
parent
a077907226
commit
f982e290f0
1 changed files with 9 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue