diff options
Diffstat (limited to 'gnu/packages/m4.scm')
-rw-r--r-- | gnu/packages/m4.scm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gnu/packages/m4.scm b/gnu/packages/m4.scm index 39b50b6800..800b11cca2 100644 --- a/gnu/packages/m4.scm +++ b/gnu/packages/m4.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2012, 2013, 2015 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2022 Marius Bakke <marius@gnu.org> -;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org> +;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -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 @@ -64,6 +70,13 @@ (("(^| )main *\\(.*" all) (string-append all "{\n exit (77);//")))))) '()) + ,@(if (target-hurd64?) + '((add-after 'unpack 'patch-sigsegv + (lambda _ + ;; Stack overflow recovery does not compile + (substitute* "lib/sigsegv.in.h" + (("__GNU__") "__XGNU__"))))) + '()) (add-after 'unpack 'configure-shell (lambda* (#:key native-inputs inputs #:allow-other-keys) (let ((/bin/sh (search-input-file (or native-inputs inputs) |