aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/m4.scm
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2024-11-25 19:45:50 +0100
committerJanneke Nieuwenhuizen <janneke@gnu.org>2024-12-03 08:42:52 +0100
commit178c3115c47905f4ddad2740ada2725db42ed478 (patch)
tree064219307adbe357b444af1ce131a001f4be2e9b /gnu/packages/m4.scm
parentd9bb372453cc74f8da7a475d688aabce47e6a14d (diff)
downloadguix-178c3115c47905f4ddad2740ada2725db42ed478.tar.gz
guix-178c3115c47905f4ddad2740ada2725db42ed478.zip
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
Diffstat (limited to 'gnu/packages/m4.scm')
-rw-r--r--gnu/packages/m4.scm6
1 files changed, 6 insertions, 0 deletions
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