janneke pushed a commit to branch wip-hurd
in repository guix.
commit 760fbdae975e1b8975736e333a3c93911e6c663b
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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index ef101e6..c1dff4f 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -367,7 +367,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)