From 178c3115c47905f4ddad2740ada2725db42ed478 Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Mon, 25 Nov 2024 19:45:50 +0100 Subject: 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(+) (limited to 'gnu/packages/m4.scm') 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 -- cgit v1.2.3