1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 18:40:57 +02:00

gnu: flex: Fix [cross-]build with gcc-14.

* gnu/packages/flex.scm (flex): When building for the 64bit Hurd, or
cross-compiling, add "-Wno-int-conversion "-Wno-implicit-function-declaration"
to #:configure-flags.

Change-Id: Ia0503e3f5c7aa5354a949b69035a1be6f93ec85f
This commit is contained in:
Janneke Nieuwenhuizen 2024-11-11 15:52:48 +01:00
parent ed1ef9bbb2
commit b727c38e43
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2019 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2012, 2013, 2014, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -22,6 +23,7 @@
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix gexp)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages m4) #:use-module (gnu packages m4)
@ -53,6 +55,12 @@
((#:tests? _ #f) #f))) ((#:tests? _ #f) #f)))
(inputs (alist-delete "flex" (package-inputs bison)))))) (inputs (alist-delete "flex" (package-inputs bison))))))
`(("bison" ,bison-for-tests)))) `(("bison" ,bison-for-tests))))
(arguments
(if (or (target-hurd64?) (%current-target-system))
(list #:configure-flags
#~'(#$(string-append "CFLAGS=-Wno-int-conversion"
" -Wno-implicit-function-declaration")))
'()))
;; m4 is not present in PATH when cross-building ;; m4 is not present in PATH when cross-building
(native-inputs (native-inputs
(list help2man m4)) (list help2man m4))