mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: bash-minimal: Support [cross-]build with gcc-14.
* gnu/packages/bash-minimal.scm (bash)[arguments]: When building for the 64bit hurd, or cross-building, use "CFLAGS=-g -O2 -Wno-implicit-function-declaration". Change-Id: I1356c0aeac303bdf0254c28815716c83884008a0
This commit is contained in:
parent
b8c5057e50
commit
59289e1cdd
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
|
;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
|
||||||
;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
|
;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
|
||||||
;;; Copyright © 2024 Oleg Pykhalov <go.wigust@gmail.com>
|
;;; Copyright © 2024 Oleg Pykhalov <go.wigust@gmail.com>
|
||||||
|
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -251,6 +252,13 @@ without modification.")
|
||||||
;; modules and related code.
|
;; modules and related code.
|
||||||
"ac_cv_func_dlopen=no"
|
"ac_cv_func_dlopen=no"
|
||||||
|
|
||||||
|
,@(if (or (target-hurd64?) (%current-target-system))
|
||||||
|
;; 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")
|
||||||
|
'())
|
||||||
|
|
||||||
,@(if (%current-target-system)
|
,@(if (%current-target-system)
|
||||||
'("bash_cv_job_control_missing=no"
|
'("bash_cv_job_control_missing=no"
|
||||||
"bash_cv_getcwd_malloc=yes")
|
"bash_cv_getcwd_malloc=yes")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue