diff options
| author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-11-06 12:26:47 +0100 |
|---|---|---|
| committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-12-03 08:33:12 +0100 |
| commit | b8c5057e50370d9f65ef7565afe11666528b341a (patch) | |
| tree | 7b775da689b2f3e24b52d73aebb65938b2295926 /gnu/packages/cross-base.scm | |
| parent | 94dfb68d4378377dfe49d6653e4ed668cecd2783 (diff) | |
gnu: cross-libc: Support cross-building for the 64bit Hurd.
* gnu/packages/base.scm (glibc)[arguments]: When building for the Hurd, in
phase "create-machine-symlink", do not assume CPU is i386, also cater for
x86_64.
* 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.scm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 83672ab383e..4961b3b4c0f 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm | |||
| @@ -738,7 +738,7 @@ returned." | |||
| 738 | (delete 'install-utf8-c-locale) | 738 | (delete 'install-utf8-c-locale) |
| 739 | 739 | ||
| 740 | ,@(if (target-hurd? target) | 740 | ,@(if (target-hurd? target) |
| 741 | '((add-after 'install 'augment-libc.so | 741 | `((add-after 'install 'augment-libc.so |
| 742 | (lambda* (#:key outputs #:allow-other-keys) | 742 | (lambda* (#:key outputs #:allow-other-keys) |
| 743 | (let ((out (assoc-ref outputs "out"))) | 743 | (let ((out (assoc-ref outputs "out"))) |
| 744 | (substitute* (string-append out "/lib/libc.so") | 744 | (substitute* (string-append out "/lib/libc.so") |
| @@ -748,7 +748,11 @@ returned." | |||
| 748 | (add-after 'install 'create-machine-symlink | 748 | (add-after 'install 'create-machine-symlink |
| 749 | (lambda* (#:key outputs #:allow-other-keys) | 749 | (lambda* (#:key outputs #:allow-other-keys) |
| 750 | (let* ((out (assoc-ref outputs "out")) | 750 | (let* ((out (assoc-ref outputs "out")) |
| 751 | (cpu "i386") | 751 | (cpu ,(match target |
| 752 | ((? target-x86-32?) | ||
| 753 | "i386") | ||
| 754 | ((? target-x86-64?) | ||
| 755 | "x86_64"))) | ||
| 752 | (machine (string-append | 756 | (machine (string-append |
| 753 | out "/include/mach/machine"))) | 757 | out "/include/mach/machine"))) |
| 754 | (unless (file-exists? machine) | 758 | (unless (file-exists? machine) |
