gnu: %glibc-stripped: Fix cross-compiling to loongarch64.

gnu/packages/make-bootstrap.scm (%glibc-stripped)[inputs]: When target
loongarch64, Use linux-libre-headers-5.19.17.

Change-Id: I4b2b9168aa3716445d1b88b4db3dcf4ad038a45d
This commit is contained in:
Zheng Junjie 2024-12-24 01:11:09 +08:00 committed by Zheng Junjie
parent 40f5d73395
commit fffecf715b
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -475,11 +475,13 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
glibc)))))
(inputs
`(("kernel-headers"
,(if (or (and (%current-target-system)
,(cond ((or (and (%current-target-system)
(target-hurd? (%current-target-system)))
(string-suffix? "-hurd" (%current-system)))
gnumach-headers
linux-libre-headers))))
gnumach-headers)
;; linux 5.19 include loongarch support.
((target-loongarch64?) linux-libre-headers-5.19.17)
(else linux-libre-headers)))))
(propagated-inputs '())
;; Only one output.