diff options
author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-11-18 14:38:16 +0100 |
---|---|---|
committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-12-03 08:33:13 +0100 |
commit | 962c8191d91b9482ebed8f8e7cc25cce6def9cf5 (patch) | |
tree | db255665ae461387da9419fc0cf7cced7637cb59 /gnu/packages/libffi.scm | |
parent | b727c38e432e4e4c7b1b5f559a5302015bd78d8c (diff) | |
download | guix-962c8191d91b9482ebed8f8e7cc25cce6def9cf5.tar.gz guix-962c8191d91b9482ebed8f8e7cc25cce6def9cf5.zip |
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
Diffstat (limited to 'gnu/packages/libffi.scm')
-rw-r--r-- | gnu/packages/libffi.scm | 8 |
1 files changed, 7 insertions, 1 deletions
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 |