janneke pushed a commit to branch wip-hurd
in repository guix.
commit 95bd54d3e585975796d58399b6df4b0815e52ca9
Author: Jan Nieuwenhuizen <[email protected]>
AuthorDate: Wed Feb 26 20:22:18 2020 -0500
gnu: make: Support for the Hurd.
* gnu/packages/base.scm (gnu-make): Use fork/exec rather than posix_spawn on
the Hurd. Also, add __alloca linkage workaround.
---
gnu/packages/base.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index f048e4b..7d645f8 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -6,7 +6,7 @@
;;; Copyright © 2014 Alex Kost <[email protected]>
;;; Copyright © 2014, 2015 Manolis Fragkiskos Ragkousis <[email protected]>
;;; Copyright © 2016, 2017, 2019, 2020 Efraim Flashner <[email protected]>
-;;; Copyright © 2016 Jan Nieuwenhuizen <[email protected]>
+;;; Copyright © 2016, 2020 Jan (janneke) Nieuwenhuizen <[email protected]>
;;; Copyright © 2016, 2018 Alex Vong <[email protected]>
;;; Copyright © 2017 Rene Saavedra <[email protected]>
;;; Copyright © 2017, 2020 Mathieu Othacehe <[email protected]>
@@ -365,7 +365,11 @@ functionality beyond that which is outlined in the POSIX
standard.")
(inputs `(("guile" ,guile-3.0)))
(outputs '("out" "debug"))
(arguments
- '(#:phases
+ `(,@(if (hurd-target?)
+ '(#:configure-flags '("CFLAGS=-D__alloca=alloca"
+ "ac_cv_func_posix_spawn=no"))
+ '())
+ #:phases
(modify-phases %standard-phases
(add-before 'build 'set-default-shell
(lambda* (#:key inputs #:allow-other-keys)