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 | |
| 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')
| -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.") | |||
| 303 | ;; modules and related code. | 303 | ;; modules and related code. |
| 304 | "ac_cv_func_dlopen=no" | 304 | "ac_cv_func_dlopen=no" |
| 305 | 305 | ||
| 306 | ,@(if (or (target-hurd64?) (%current-target-system)) | 306 | ,@(if (or (target-hurd64?) |
| 307 | (%current-target-system) | ||
| 308 | (and (target-x86?) (target-linux?))) | ||
| 307 | ;; gcc-14 implictly uses -Wimplicit-function-declaration | 309 | ;; gcc-14 implictly uses -Wimplicit-function-declaration |
| 308 | ;; which together with -Werror causes: | 310 | ;; which together with -Werror causes: |
| 309 | ;; ./enable.def:492:11: error: implicit declaration of function ‘dlclose’; | 311 | ;; ./enable.def:492:11: error: implicit declaration of function ‘dlclose’; |
| 310 | '("CFLAGS=-g -O2 -Wno-implicit-function-declaration") | 312 | '("CFLAGS=-g -O2 -Wno-error=implicit-function-declaration") |
| 311 | '()) | 313 | '()) |
| 312 | 314 | ||
| 313 | ,@(if (%current-target-system) | 315 | ,@(if (%current-target-system) |
