aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/cross-base.scm
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2024-11-06 12:26:47 +0100
committerJanneke Nieuwenhuizen <janneke@gnu.org>2024-11-17 12:36:55 +0100
commitd108a7aac2c51f21c55cb8ea8801629a97f5242a (patch)
tree68d6a375558b984434dcade5b2e815c5d282f09f /gnu/packages/cross-base.scm
parent94133452aa49de672d69950b2e1a99432111074c (diff)
downloadguix-d108a7aac2c51f21c55cb8ea8801629a97f5242a.tar.gz
guix-d108a7aac2c51f21c55cb8ea8801629a97f5242a.zip
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
Diffstat (limited to 'gnu/packages/cross-base.scm')
-rw-r--r--gnu/packages/cross-base.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index cecc21083e..5781341a87 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -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