[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/58: gnu: libffi: Fix [cross-]build with gcc-14.
From: |
guix-commits |
Subject: |
16/58: gnu: libffi: Fix [cross-]build with gcc-14. |
Date: |
Sun, 24 Nov 2024 02:50:36 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 59f0acb9eeb06db0050064945f58cc68320dbd92
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
- 29/58: system: image: Add hurd64 image types., (continued)
- 29/58: system: image: Add hurd64 image types., guix-commits, 2024/11/24
- 33/58: gnu: libpciaccess: Support the 64bit Hurd., guix-commits, 2024/11/24
- 45/58: gnu: commencement: hurd-headers-boot0: Update to 0.9.git20240714., guix-commits, 2024/11/24
- 46/58: gnu: commencement: libstdc++-boot0-gcc7: Replace by make-libstdc++-boot0., guix-commits, 2024/11/24
- 49/58: gnu: bootstrap: %bootstrap-glibc: Also fix libm.so., guix-commits, 2024/11/24
- 32/58: gnu: pciutils: Support the 64bit Hurd., guix-commits, 2024/11/24
- 05/58: gnu: cross-libc: Support cross-building for the 64bit Hurd., guix-commits, 2024/11/24
- 57/58: gnu: commencement: gcc-boot0: Support the 64bit Hurd., guix-commits, 2024/11/24
- 15/58: gnu: flex: Fix [cross-]build with gcc-14., guix-commits, 2024/11/24
- 12/58: gnu: glibc/hurd: Add patches for the 64bit Hurd., guix-commits, 2024/11/24
- 16/58: gnu: libffi: Fix [cross-]build with gcc-14.,
guix-commits <=
- 18/58: gnu: texinfo-4: Fix [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/11/24
- 24/58: gnu: cross-base: Update %xgcc to gcc-14, to support the 64bit Hurd., guix-commits, 2024/11/24
- 22/58: gnu: libssh: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/11/24
- 21/58: gnu: libedit: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/11/24
- 30/58: gnu: libgpg-error: Support the 64bit Hurd., guix-commits, 2024/11/24
- 36/58: gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337., guix-commits, 2024/11/24
- 40/58: gnu: grub: Fix build for the 64bit Hurd., guix-commits, 2024/11/24
- 48/58: gnu: Add gdb-15.2, with support for the 64bit Hurd., guix-commits, 2024/11/24
- 38/58: gnu: hurd: Build fixes for the 64bit Hurd., guix-commits, 2024/11/24
- 51/58: system: examples: Add devel-hurd64.tmpl., guix-commits, 2024/11/24