janneke pushed a commit to branch core-packages-team
in repository guix.

commit 602311b151adbc3ceba031874feae533d932f385
Author: Janneke Nieuwenhuizen <jann...@gnu.org>
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
---
 gnu/packages/sdl.scm | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 5cfbdf4781..6666a61301 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2023 Evgeny Pisemsky <m...@pisemsky.site>
 ;;; Copyright © 2023, 2024 dan <i@dan.games>
 ;;; Copyright © 2025 Zheng Junjie <873216...@qq.com>
+;;; Copyright © 2025 Janneke Nieuwenhuizen <jann...@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -323,11 +324,14 @@ 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
+      #~(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