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
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-01 11:30:31 +01:00
parent de119d1e11
commit 121312b2fa
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1253,7 +1253,8 @@ (define-public glibc-2.35
(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