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

commit a235050b6c824a9197744eb204a6e9254082a319
Author: Janneke Nieuwenhuizen <jann...@gnu.org>
AuthorDate: Wed Jan 1 11:30:31 2025 +0100

    gnu: glibc-2.35: Fix build with gcc-14.
    
    * gnu/packages/base.scm (glibc-2.35)[arguments]: Add CFLAGS to 
#:configure-flags
    to relax gcc-14's strictness.
    
    Change-Id: Ib731ac64e70f1b29655d26dead8b4b970e90f063
---
 gnu/packages/base.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 4c96ffa1a4..7db27da287 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -6,7 +6,7 @@
 ;;; Copyright © 2014 Alex Kost <alez...@gmail.com>
 ;;; Copyright © 2014, 2015 Manolis Fragkiskos Ragkousis <manolis...@gmail.com>
 ;;; Copyright © 2016, 2017, 2019-2023 Efraim Flashner <efr...@flashner.co.il>
-;;; Copyright © 2016, 2020, 2023, 2024 Janneke Nieuwenhuizen <jann...@gnu.org>
+;;; Copyright © 2016, 2020, 2023, 2024, 2025 Janneke Nieuwenhuizen 
<jann...@gnu.org>
 ;;; Copyright © 2016, 2018 Alex Vong <alexvong1...@gmail.com>
 ;;; Copyright © 2017 Rene Saavedra <ren...@openmailbox.org>
 ;;; Copyright © 2017, 2020 Mathieu Othacehe <m.othac...@gmail.com>
@@ -1269,7 +1269,8 @@ with the Linux kernel.")
     (arguments
      (substitute-keyword-arguments (package-arguments glibc)
        ((#:configure-flags flags #~'())
-        #~(cons* "--enable-crypt"
+        #~(cons* "CFLAGS=-g -O2 -Wno-error=builtin-declaration-mismatch"
+                 "--enable-crypt"
                  ;; We do not want to use the C++ compiler, because its
                  ;; libstdc++ is linked against a newer glibc, and so relies
                  ;; on those newer symbols.  Pretend it doesn't link (the test

Reply via email to