[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/38: gnu: cross-libc: Support cross-building for the 64bit Hurd.
From: |
guix-commits |
Subject: |
25/38: gnu: cross-libc: Support cross-building for the 64bit Hurd. |
Date: |
Thu, 7 Nov 2024 10:56:10 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 43cfdd7ff144afa499524edf2181845373b2ad25
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Wed Nov 6 12:26:47 2024 +0100
gnu: cross-libc: Support cross-building for the 64bit Hurd.
* gnu/packages/cross-base.scm (cross-libc*)[arguments]: Do not assume CPU is
i386, also cater for x86_64. Only fix CPU symlink for gcc < 14.
---
gnu/packages/cross-base.scm | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 7b32a6b64e..824fadb6d9 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -738,17 +738,24 @@ returned."
(delete 'install-utf8-c-locale)
,@(if (target-hurd? target)
- '((add-after 'install 'augment-libc.so
+ `((add-after 'install 'augment-libc.so
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* (string-append out "/lib/libc.so")
(("/[^ ]+/lib/libc.so.0.3")
(string-append out "/lib/libc.so.0.3"
- " libmachuser.so
libhurduser.so"))))))
- (add-after 'install 'create-machine-symlink
+ " libmachuser.so
libhurduser.so")))))))
+ '())
+ ,@(if (and (target-hurd? target)
+ (version>? "14" (package-version xgcc)))
+ `((add-after 'install 'create-machine-symlink
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
- (cpu "i386"))
+ (cpu ,(match target
+ ((? target-x86-32?)
+ "i386")
+ ((? target-x86-64?)
+ "x86_64"))))
(symlink cpu
(string-append out
"/include/mach/machine"))))))
- 05/38: system: hurd: Add swap-services to hurd-default-essential-services., (continued)
- 05/38: system: hurd: Add swap-services to hurd-default-essential-services., guix-commits, 2024/11/07
- 07/38: hurd-boot: Support second boot., guix-commits, 2024/11/07
- 08/38: system: examples: Add devel-hurd.tmpl., guix-commits, 2024/11/07
- 06/38: gnu: hurd: Support second boot., guix-commits, 2024/11/07
- 04/38: system: hurd: Remove qemu networking from %base-services/hurd., guix-commits, 2024/11/07
- 16/38: installer: Add "Kernel" page to select the Hurd., guix-commits, 2024/11/07
- 13/38: installer: Fix file-name typos., guix-commits, 2024/11/07
- 19/38: gnu: gnumach: Update to v1.8+git20240406., guix-commits, 2024/11/07
- 20/38: gnu: hurd: Update to v0.9.git20240714., guix-commits, 2024/11/07
- 24/38: gnu: elfutils: Fix build for 64bit Hurd., guix-commits, 2024/11/07
- 25/38: gnu: cross-libc: Support cross-building for the 64bit Hurd.,
guix-commits <=
- 33/38: gnu: Add libgpg-error-1.50., guix-commits, 2024/11/07
- 31/38: DRAFT gnu: bootstrap: Add support for x86_64-gnu., guix-commits, 2024/11/07
- 27/38: gnu: patch: Fix build for the 64bit Hurd., guix-commits, 2024/11/07
- 26/38: gnu: grep: Fix build for the 64bit Hurd., guix-commits, 2024/11/07
- 18/38: installer: Support dry-run from Guile via store., guix-commits, 2024/11/07
- 28/38: gnu: libxcrypt: Support the 64bit Hurd., guix-commits, 2024/11/07
- 37/38: gnu: pciutils: Support the 64bit Hurd., guix-commits, 2024/11/07
- 30/38: gnu: gcc-13, gcc-14: Support being used as parent for gcc-static., guix-commits, 2024/11/07
- 36/38: gnu: openssl-3.0: Support the 64bit Hurd., guix-commits, 2024/11/07
- 29/38: gnu: libstdc++: Support the 64bit Hurd., guix-commits, 2024/11/07