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
This commit is contained in:
Janneke Nieuwenhuizen 2024-11-25 19:45:50 +01:00
parent d9bb372453
commit 178c3115c4
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -43,6 +43,12 @@ (define-public m4
`(;; 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