[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: m4: Fix build of tests on the 64bit Hurd.
From: |
guix-commits |
Subject: |
01/02: gnu: m4: Fix build of tests on the 64bit Hurd. |
Date: |
Mon, 25 Nov 2024 14:39:37 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 6adf567021e9f8d20eacb979bd481b9370e68e81
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Nov 25 19:45:50 2024 +0100
gnu: m4: Fix build of tests on the 64bit Hurd.
* gnu/packages/m4.scm (m4)[arguments]: When building on the 64bit Hurd,
add CFLAGS to #:configure-flags.
Change-Id: Iab16194f4cd2911b4610dddd855064ddc4958dd9
---
gnu/packages/m4.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/m4.scm b/gnu/packages/m4.scm
index 081304db34..800b11cca2 100644
--- a/gnu/packages/m4.scm
+++ b/gnu/packages/m4.scm
@@ -43,6 +43,12 @@
`(;; Explicitly disable tests when cross-compiling, otherwise 'make check'
;; proceeds and fails, unsurprisingly.
#:tests? ,(not (%current-target-system))
+ ,@(if (system-hurd64?)
+ (list #:configure-flags
+ `'(,(string-append
+ "CFLAGS=-g -O2"
+ " -Wno-implicit-function-declaration")))
+ '())
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-test