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
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-03 20:44:24 +01:00
parent e01bf1d99d
commit 6aac8c1c77
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -65,7 +65,9 @@ (define-public libffi
;; 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"))