[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/27: gnu: flex: Fix [cross-]build with gcc-14.
From: |
guix-commits |
Subject: |
15/27: gnu: flex: Fix [cross-]build with gcc-14. |
Date: |
Tue, 3 Dec 2024 02:41:15 -0500 (EST) |
janneke pushed a commit to branch master
in repository guix.
commit b727c38e432e4e4c7b1b5f559a5302015bd78d8c
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Nov 11 15:52:48 2024 +0100
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
---
gnu/packages/flex.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/flex.scm b/gnu/packages/flex.scm
index 7972675971..4ad1e1382a 100644
--- a/gnu/packages/flex.scm
+++ b/gnu/packages/flex.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -22,6 +23,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
+ #:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages m4)
@@ -53,6 +55,12 @@
((#:tests? _ #f) #f)))
(inputs (alist-delete "flex" (package-inputs bison))))))
`(("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
(native-inputs
(list help2man m4))
- branch master updated (5cb84f2013 -> ec8a5ec15f), guix-commits, 2024/12/03
- 04/27: gnu: Add basic support for x86_64-pc-gnu target, aka 64bit Hurd., guix-commits, 2024/12/03
- 07/27: gnu: elfutils: Fix build for 64bit Hurd., guix-commits, 2024/12/03
- 06/27: gnu: bash-minimal: Support [cross-]build with gcc-14., guix-commits, 2024/12/03
- 15/27: gnu: flex: Fix [cross-]build with gcc-14.,
guix-commits <=
- 01/27: gnu: gnumach: Update to v1.8+git20240714., guix-commits, 2024/12/03
- 03/27: gnu: hurd: Update to 0.9.git20240714., guix-commits, 2024/12/03
- 05/27: gnu: cross-libc: Support cross-building for the 64bit Hurd., guix-commits, 2024/12/03
- 02/27: gnu: mig: Update to 1.8+git20231217., guix-commits, 2024/12/03
- 08/27: gnu: grep: Fix build for the 64bit Hurd., guix-commits, 2024/12/03
- 10/27: gnu: libxcrypt: Support the 64bit Hurd., guix-commits, 2024/12/03
- 11/27: gnu: libstdc++: Support the 64bit Hurd., guix-commits, 2024/12/03
- 09/27: gnu: patch: Fix build for the 64bit Hurd., guix-commits, 2024/12/03
- 17/27: gnu: perl: Support [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/12/03
- 25/27: gnu: gcc-14: Force libdir /lib instead of /lib64 for the 64bit Hurd., guix-commits, 2024/12/03