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.
This commit is contained in:
Jan Nieuwenhuizen 2020-02-26 20:22:18 -05:00
parent 9820d6eda6
commit 846f5da129
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -369,7 +369,11 @@ (define-public gnu-make
(inputs `(("guile" ,guile-3.0))) (inputs `(("guile" ,guile-3.0)))
(outputs '("out" "debug")) (outputs '("out" "debug"))
(arguments (arguments
'(#:phases `(,@(if (hurd-target?)
'(#:configure-flags '("CFLAGS=-D__alloca=alloca"
"ac_cv_func_posix_spawn=no"))
'())
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'build 'set-default-shell (add-before 'build 'set-default-shell
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)