janneke pushed a commit to branch core-packages-team
in repository guix.
commit 355f08020f079746d610c725b3a9eeb5339141c5
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Thu Jan 2 22:10:50 2025 +0100
gnu: libjxr: Fix build with gcc-14.
* gnu/packages/image.scm (libjxr)[arguments]: Extend CFLAGS to relax
gcc-14's
strictness.
Change-Id: I44cedd787beae4efb945efde3217999af430c94b
---
gnu/packages/image.scm | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 89e7ef83e6..2462dfaa29 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -26,7 +26,7 @@
;;; Copyright © 2020 Giacomo Leidi <[email protected]>
;;; Copyright © 2020 R Veera Kumar <[email protected]>
;;; Copyright © 2020, 2023 Maxim Cournoyer <[email protected]>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <[email protected]>
+;;; Copyright © 2020, 2025 Janneke Nieuwenhuizen <[email protected]>
;;; Copyright © 2020 Zhu Zihao <[email protected]>
;;; Copyright © 2020, 2021, 2022, 2023, 2024 Vinicius Monego
<[email protected]>
;;; Copyright © 2021 Sharlatan Hellseher <[email protected]>
@@ -587,8 +587,16 @@ lossless JPEG manipulations such as rotation, scaling or
cropping:
;; flag if there was no file decoding error.
;; The makefile is a "Non-ISO extended-ASCII text, with CRLF line
;; terminators" according to the file(1) utility.
- (string-append "CFLAGS=-I. -Icommon/include -Iimage/sys -fPIC "
- "-D__ANSI__ -DDISABLE_PERF_MEASUREMENT -w -O "))
+ (string-append "CFLAGS=-I."
+ " -Icommon/include"
+ " -Iimage/sys"
+ " -D__ANSI__"
+ " -DDISABLE_PERF_MEASUREMENT"
+ " -fPIC"
+ " -w"
+ " -O"
+ " -Wno-error=implicit-function-declaration"
+ " -Wno-error=incompatible-pointer-types"))
#:tests? #f ; no check target
#:phases
(modify-phases %standard-phases