[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66263] [PATCH 02/23] guix: gnu: Handle platforms without libc.
From: |
Jean-Pierre De Jesus DIAZ |
Subject: |
[bug#66263] [PATCH 02/23] guix: gnu: Handle platforms without libc. |
Date: |
Fri, 29 Sep 2023 11:16:06 +0200 |
* guix/build-system/gnu.scm (standard-cross-packages): Do not add
cross-libc as an input if the system doesn't support a libc.
---
guix/build-system/gnu.scm | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm
index c1aa187c42..03a742f8b9 100644
--- a/guix/build-system/gnu.scm
+++ b/guix/build-system/gnu.scm
@@ -460,11 +460,15 @@ (define standard-cross-packages
`(("cross-gcc" ,(gcc target
#:xbinutils (binutils target)
#:libc libc))
- ("cross-libc" ,libc)
- ;; MinGW's libc doesn't have a "static" output.
- ,@(if (member "static" (package-outputs libc))
- `(("cross-libc:static" ,libc "static"))
+ ;; Some targets don't have a libc.
+ ,@(if libc
+ `(("cross-libc" ,libc)
+
+ ;; MinGW's libc doesn't have a "static" output.
+ ,@(if (member "static" (package-outputs libc))
+ `(("cross-libc:static" ,libc "static"))
+ '()))
'()))))))))
(define* (gnu-cross-build name
--
2.34.1
- [bug#66263] [PATCH 00/23] guix: Add avr as a platform., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 01/23] gnu: cross-libc: Return #f if no libc available., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 05/23] gnu: cross-gcc: Enable multilib for avr., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 11/23] gnu: avr-binutils: Deprecate package., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 04/23] guix: utils: Add target-avr?., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 19/23] gnu: Add gcc-cross-avr-toolchain., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 02/23] guix: gnu: Handle platforms without libc.,
Jean-Pierre De Jesus DIAZ <=
- [bug#66263] [PATCH 23/23] gnu: Add unity., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 21/23] guix: meson-build-system: Support AVR., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 20/23] gnu: Add avr-toolchain., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 06/23] gnu: microscheme: Move to avr-xyz., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 13/23] gnu: cross-libc: Add AVR Libc case., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 16/23] gnu: cross-gcc-search-paths: Handle AVR target., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 18/23] gnu: Add avr-libc., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 08/23] gnu: avr-libc: Convert to procedure., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 09/23] gnu: Add make-cross-gcc-toolchain., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 10/23] gnu: Add binutils-cross-avr., Jean-Pierre De Jesus DIAZ, 2023/09/29