guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/07: gnu: bash-minimal: Fix build for x86_64-linux with gcc-14.


From: guix-commits
Subject: 03/07: gnu: bash-minimal: Fix build for x86_64-linux with gcc-14.
Date: Tue, 3 Dec 2024 15:06:14 -0500 (EST)

janneke pushed a commit to branch core-packages-team
in repository guix.

commit 13531f64f5306c9803ec525547586bcfdb8252d1
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Dec 3 19:49:03 2024 +0100

    gnu: bash-minimal: Fix build for x86_64-linux with gcc-14.
    
    * gnu/packages/bash-minimal.scm (bash)[arguments]: When building
    for x86_64-linux, also use "CFLAGS=-g -O2 
-Wno-implicit-function-declaration".
    
    Change-Id: I21af1acdc550c83e63241811a6586598f187b2ef
---
 gnu/packages/bash.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm
index 642a405985..a5c293f34c 100644
--- a/gnu/packages/bash.scm
+++ b/gnu/packages/bash.scm
@@ -266,7 +266,9 @@ 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-64?) (target-linux?)))
                      ;; gcc-14 implictly uses -Wimplicit-function-declaration
                      ;; which together with -Werror causes:
                      ;; ./enable.def:492:11: error: implicit declaration of 
function ‘dlclose’;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]