[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/51: gnu: libffi: Fix [cross-]build with gcc-14.
From: |
guix-commits |
Subject: |
16/51: gnu: libffi: Fix [cross-]build with gcc-14. |
Date: |
Mon, 18 Nov 2024 18:49:08 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit cac75ab66f0f2b199ffdd074f528c484a9cc296b
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
- 44/51: gnu: commencement: libstdc++-boot0-gcc7: Replace by make-libstdc++-boot0., (continued)
- 44/51: gnu: commencement: libstdc++-boot0-gcc7: Replace by make-libstdc++-boot0., guix-commits, 2024/11/18
- 09/51: gnu: patch: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 22/51: gnu: libssh: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/11/18
- 31/51: gnu: libpciaccess: Support the 64bit Hurd., guix-commits, 2024/11/18
- 42/51: gnu: commencement: mig-boot0: Update to 1.8+git20231217.., guix-commits, 2024/11/18
- 49/51: system: examples: Add bare-hurd64.tmpl., guix-commits, 2024/11/18
- 50/51: system: examples: Add devel-hurd64.tmpl., guix-commits, 2024/11/18
- 51/51: gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd., guix-commits, 2024/11/18
- 02/51: gnu: mig: Update to 1.8+git20231217., guix-commits, 2024/11/18
- 10/51: gnu: libxcrypt: Support the 64bit Hurd., guix-commits, 2024/11/18
- 16/51: gnu: libffi: Fix [cross-]build with gcc-14.,
guix-commits <=
- 18/51: gnu: texinfo-4: Fix [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/11/18
- 20/51: gnu: netdde: Fix build with gcc-14., guix-commits, 2024/11/18
- 24/51: gnu: cross-base: Update %xgcc to gcc-14, to support the 64bit Hurd., guix-commits, 2024/11/18
- 26/51: DRAFT gnu: bootstrap: Add support for x86_64-gnu, aka the 64bit Hurd., guix-commits, 2024/11/18
- 27/51: system: image: Add hurd64 image types., guix-commits, 2024/11/18
- 28/51: gnu: libgpg-error: Support the 64bit Hurd., guix-commits, 2024/11/18
- 29/51: gnu: openssl-3.0: Support the 64bit Hurd., guix-commits, 2024/11/18
- 30/51: gnu: pciutils: Support the 64bit Hurd., guix-commits, 2024/11/18
- 36/51: gnu: hurd: Build fixes for the 64bit Hurd., guix-commits, 2024/11/18
- 38/51: gnu: grub: Fix build for the 64bit Hurd., guix-commits, 2024/11/18