diff options
| author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-12-03 19:49:03 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-07-18 20:17:11 +0200 |
| commit | cbd17257aaa3b589bdb21857ded56ef1f2d3978c (patch) | |
| tree | 6d49d85b610e1b6c09e1ae1e9c351badb1414a72 /gnu/packages/bash.scm | |
| parent | 3e417d19ef5b8cd447b9d2bf5d1ecc7290b222c6 (diff) | |
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
Diffstat (limited to 'gnu/packages/bash.scm')
| -rw-r--r-- | gnu/packages/bash.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index bcd78d7d2a9..27d46fbaab3 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -303,11 +303,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) |
