mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
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
This commit is contained in:
parent
92ff43f6f3
commit
46f6e8b49f
1 changed files with 4 additions and 2 deletions
|
@ -266,11 +266,13 @@ (define-public bash-minimal
|
|||
;; 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)
|
||||
|
|
Loading…
Reference in a new issue