guix_mirror_bot pushed a commit to branch master
in repository guix.

commit beb40d81a88c14e5ba2322995afe1ece71fdeb77
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Sat Jan 4 18:17:58 2025 +0100

    gnu: sdl-image-1.2.12: Fix build with gcc-14.
    
    * gnu/packages/sdl.scm (sdl-image): Add CFLAGS to #:configure-flags to relax
    gcc-14's strictness.
    
    Change-Id: Ib589af2325488cc9e96333fd3046983714357508
    Modified-by: Zheng Junjie <[email protected]>
---
 gnu/packages/sdl.scm | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index da16c1b973..22aad6a521 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -18,6 +18,7 @@
 ;;; Copyright © 2023, 2024 dan <[email protected]>
 ;;; Copyright © 2025 Zheng Junjie <[email protected]>
 ;;; Copyright © 2025 Eric Bavier <[email protected]>
+;;; Copyright © 2025 Janneke Nieuwenhuizen <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -378,11 +379,15 @@ other supporting functions for SDL.")
     (build-system gnu-build-system)
     (outputs '("out" "debug"))
     (arguments
-     ;; Explicitly link against shared libraries instead of dlopening them.
-     '(#:configure-flags '("--disable-jpg-shared"
-                           "--disable-png-shared"
-                           "--disable-tif-shared"
-                           "--disable-webp-shared")))
+     (list
+      #:configure-flags
+      ;; Relax gcc-14's strictness.
+      #~(list "CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types"
+              ;; Explicitly link against shared libraries instead of dlopening 
them.
+              "--disable-jpg-shared"
+              "--disable-png-shared"
+              "--disable-tif-shared"
+              "--disable-webp-shared")))
     (native-inputs (list pkg-config))
     ;; libjpeg, libpng, and libtiff are propagated inputs because the
     ;; SDL_image headers include the headers of these libraries.  SDL is a

Reply via email to