mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
guix: gnu-build-system: Handle missing libc.
* guix/build-system/gnu.scm (standard-cross-packages): Handle the case when `cross-libc` returns #f. Change-Id: I85ee5456f10ff141d521a5f2d91267cd612c5616 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
444a40c75a
commit
b40a44430f
1 changed files with 5 additions and 2 deletions
|
@ -460,10 +460,13 @@ (define standard-cross-packages
|
|||
`(("cross-gcc" ,(gcc target
|
||||
#:xbinutils (binutils target)
|
||||
#:libc libc))
|
||||
("cross-libc" ,libc)
|
||||
;; Some targets don't have a libc. (e.g. *-elf targets).
|
||||
,@(if libc
|
||||
`(("cross-libc" ,libc))
|
||||
'())
|
||||
|
||||
;; MinGW's libc doesn't have a "static" output.
|
||||
,@(if (member "static" (package-outputs libc))
|
||||
,@(if (and libc (member "static" (package-outputs libc)))
|
||||
`(("cross-libc:static" ,libc "static"))
|
||||
'()))))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue