summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2025-01-02 22:10:50 +0100
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:22 +0200
commit3cdebf01383d75f64f73e6d6208f0f8026d1221d (patch)
tree5f931a9af883ef4043678a2851872bcae578798d
parent2a05153483cb5df12115b513894cc2dfd5e1ccde (diff)
gnu: libjxr: Fix build with gcc-14.
* gnu/packages/image.scm (libjxr)[arguments]: Extend CFLAGS to relax gcc-14's strictness. Change-Id: I44cedd787beae4efb945efde3217999af430c94b
-rw-r--r--gnu/packages/image.scm14
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index c16644d42f..3b6bf1f3a6 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -26,7 +26,7 @@
;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2020 R Veera Kumar <vkor@vkten.in>
;;; Copyright © 2020, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020, 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
;;; Copyright © 2020, 2021, 2022, 2023, 2024 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
@@ -625,8 +625,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