gnu: cross-libc: Resurrect cross-building for the Hurd.

* gnu/packages/base.scm (glibc)[arguments]: When building for the Hurd, in
phase "create-machine-symlink", only create symlink if it is missing.
* gnu/packages/cross-base.scm (cross-libc*)[arguments]: Likewise.

Change-Id: Ib009b7bd301b543b8629382330cca9d963b7a812
This commit is contained in:
Janneke Nieuwenhuizen 2024-11-06 12:26:47 +01:00
parent 94133452aa
commit d108a7aac2
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 12 additions and 10 deletions

View file

@ -747,11 +747,12 @@ returned."
" libmachuser.so libhurduser.so"))))))
(add-after 'install 'create-machine-symlink
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(cpu "i386"))
(symlink cpu
(string-append out
"/include/mach/machine"))))))
(let* ((out (assoc-ref outputs "out"))
(cpu "i386")
(machine (string-append
out "/include/mach/machine")))
(unless (file-exists? machine)
(symlink cpu machine))))))
'())))))
;; Shadow the native "kernel-headers" because glibc's recipe expects the