[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/27: gnu: libffi: Fix [cross-]build with gcc-14.
From: |
guix-commits |
Subject: |
16/27: gnu: libffi: Fix [cross-]build with gcc-14. |
Date: |
Tue, 3 Dec 2024 02:41:15 -0500 (EST) |
janneke pushed a commit to branch master
in repository guix.
commit 962c8191d91b9482ebed8f8e7cc25cce6def9cf5
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Nov 18 14:38:16 2024 +0100
gnu: libffi: Fix [cross-]build with gcc-14.
* gnu/packages/libffi.scm (libffi)[arguments]: When building for the 64bit
Hurd, or cross-building, add "CFLAGS" to #:configure-flags to disable
breaking
warning.
Change-Id: I05bf3f460f3e292626de1894b7a3cf381cb07702
---
gnu/packages/libffi.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm
index ba3fc6bc79..62be8f0c4a 100644
--- a/gnu/packages/libffi.scm
+++ b/gnu/packages/libffi.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2020 John Doe <dftxbs3e@free.fr>
+;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -60,7 +61,12 @@
`(;; Prevent the build system from passing -march and -mtune to the
;; compiler. See "ax_cc_maxopt.m4" and "ax_gcc_archflag.m4".
#:configure-flags '("--enable-portable-binary"
- "--without-gcc-arch")))
+ "--without-gcc-arch"
+ ,@(if (or (target-hurd64?) (%current-target-system))
+ (list (string-append
+ "CFLAGS=-g -O2"
+ " -Wno-implicit-function-declaration"))
+ '()))))
(outputs '("out" "debug"))
(synopsis "Foreign function call interface library")
(description
- 08/27: gnu: grep: Fix build for the 64bit Hurd., (continued)
- 08/27: gnu: grep: Fix build for the 64bit Hurd., guix-commits, 2024/12/03
- 10/27: gnu: libxcrypt: Support the 64bit Hurd., guix-commits, 2024/12/03
- 11/27: gnu: libstdc++: Support the 64bit Hurd., guix-commits, 2024/12/03
- 09/27: gnu: patch: Fix build for the 64bit Hurd., guix-commits, 2024/12/03
- 17/27: gnu: perl: Support [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/12/03
- 25/27: gnu: gcc-14: Force libdir /lib instead of /lib64 for the 64bit Hurd., guix-commits, 2024/12/03
- 27/27: gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd., guix-commits, 2024/12/03
- 21/27: gnu: libedit: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/12/03
- 26/27: gnu: glibc/hurd: Add patch for the 64bit Hurd, fixing "raise"., guix-commits, 2024/12/03
- 18/27: gnu: texinfo-4: Fix [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/12/03
- 16/27: gnu: libffi: Fix [cross-]build with gcc-14.,
guix-commits <=
- 13/27: gnu: bash: Avoid hang when cross-built for the Hurd., guix-commits, 2024/12/03
- 12/27: gnu: glibc/hurd: Add patches for the 64bit Hurd., guix-commits, 2024/12/03
- 14/27: gnu: git-minimal: Support [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/12/03
- 23/27: gnu: guile-lzlib: Support [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/12/03
- 20/27: gnu: netdde: Fix build with gcc-14., guix-commits, 2024/12/03
- 22/27: gnu: libssh: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/12/03
- 24/27: gnu: cross-base: Update %xgcc to gcc-14, to support the 64bit Hurd., guix-commits, 2024/12/03
- 19/27: gnu: hurd: Fix build with gcc-14., guix-commits, 2024/12/03