guix-commits
[Top][All Lists]
Advanced

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

08/74: gnu: libffi: Fix build for x86_64-linux with gcc-14.


From: guix-commits
Subject: 08/74: gnu: libffi: Fix build for x86_64-linux with gcc-14.
Date: Wed, 18 Dec 2024 08:06:51 -0500 (EST)

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

commit e10e84fbda77637fe5e67ca1acbd0d425add85ca
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Dec 3 20:44:24 2024 +0100

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

diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm
index 5ac092da1c..660762ea09 100644
--- a/gnu/packages/libffi.scm
+++ b/gnu/packages/libffi.scm
@@ -65,7 +65,9 @@
        ;; compiler.  See "ax_cc_maxopt.m4" and "ax_gcc_archflag.m4".
        #:configure-flags '("--enable-portable-binary"
                            "--without-gcc-arch"
-                           ,@(if (or (target-hurd64?) (%current-target-system))
+                           ,@(if (or (target-hurd64?)
+                                     (%current-target-system)
+                                     (and (target-x86-64?) (target-linux?)))
                                  (list (string-append
                                         "CFLAGS=-g -O2"
                                         " -Wno-implicit-function-declaration"))



reply via email to

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