aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2020-02-26 20:22:18 -0500
committerJan Nieuwenhuizen <janneke@gnu.org>2020-03-26 12:59:31 +0100
commit846f5da1296c09d667179c7da2cbb18929bcde67 (patch)
treeff52127ab31640a14110752222ac26cc5aec3965
parent9820d6eda66e0056e2969bcc16a2564c065baaec (diff)
downloadguix-846f5da1296c09d667179c7da2cbb18929bcde67.tar.gz
guix-846f5da1296c09d667179c7da2cbb18929bcde67.zip
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.
-rw-r--r--gnu/packages/base.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 5c976aee52..aa5200294f 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -369,7 +369,11 @@ 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)