mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
gnu: unzip: Fix build with gcc-14.
* gnu/packages/compression.scm (unzip)[arguments]: Add CC to #:make-flags to relax gcc-14's strictness. In phase "build" use target "generic" rather than "generic_gcc". Change-Id: I9b4753529b15b5766d7764553bf1fb234c437d45
This commit is contained in:
parent
44e7bfee39
commit
bc79f93f8d
1 changed files with 3 additions and 1 deletions
|
@ -2019,15 +2019,17 @@ (define-public unzip
|
|||
`("-j" ,(number->string
|
||||
(parallel-job-count))
|
||||
,@make-flags
|
||||
"generic_gcc")))))
|
||||
"generic")))))
|
||||
#:make-flags
|
||||
;; Fix cross-compilation without affecting native builds, as doing so
|
||||
;; would trigger too many rebuilds: https://issues.guix.gnu.org/57127
|
||||
(if (%current-target-system)
|
||||
#~(list "-f" "unix/Makefile"
|
||||
"CC=gcc -Wno-error=implicit-function-declaration"
|
||||
(string-append "prefix=" #$output)
|
||||
(string-append "MANDIR=" #$output "/share/man/man1"))
|
||||
#~(list "-f" "unix/Makefile"
|
||||
"CC=gcc -Wno-error=implicit-function-declaration"
|
||||
(string-append "prefix=" %output)
|
||||
(string-append "MANDIR=" %output "/share/man/man1")))))
|
||||
(home-page "http://www.info-zip.org/UnZip.html")
|
||||
|
|
Loading…
Reference in a new issue