janneke pushed a commit to branch core-packages-team in repository guix. commit a69611e8ac21101f9d6b011a9a2f8c76c72f1185 Author: Janneke Nieuwenhuizen <jann...@gnu.org> AuthorDate: Tue Dec 3 19:49:03 2024 +0100
gnu: bash-minimal: Fix build for x86-linux with gcc-14. * gnu/packages/bash-minimal.scm (bash)[arguments]: When building for x86-linux, also use CFLAGS in #:configure-flags to relax gcc-14's strictness. Change-Id: I21af1acdc550c83e63241811a6586598f187b2ef --- gnu/packages/bash.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index ef530522ec..054028564a 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -281,11 +281,13 @@ without modification.") ;; modules and related code. "ac_cv_func_dlopen=no" - ,@(if (or (target-hurd64?) (%current-target-system)) + ,@(if (or (target-hurd64?) + (%current-target-system) + (and (target-x86?) (target-linux?))) ;; gcc-14 implictly uses -Wimplicit-function-declaration ;; which together with -Werror causes: ;; ./enable.def:492:11: error: implicit declaration of function ‘dlclose’; - '("CFLAGS=-g -O2 -Wno-implicit-function-declaration") + '("CFLAGS=-g -O2 -Wno-error=implicit-function-declaration") '()) ,@(if (%current-target-system)