gnu: bootstrap: %bootstrap-glibc: Patch more files.

* gnu/packages/bootstrap.scm (%bootstrap-glibc)[arguments]: When
building for x86* or arm* architectures also patch libpthread.so.

Change-Id: Ief0c78444bbde5c4a1849daa53e13dc3b154b1ed
This commit is contained in:
Efraim Flashner 2024-12-10 12:57:46 +02:00 committed by Janneke Nieuwenhuizen
parent f75656d681
commit 77843f37b5
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -774,10 +774,14 @@ (define %bootstrap-glibc
(chmod "lib" #o755)
;; Patch linker scripts so they refer to the right file-names.
(substitute* ,(if (target-hurd64?)
''("lib/libc.so" "lib/libm.so")
"lib/libc.so")
(("/[^ ]+/lib/(libc|libm|libh|ld)" _ prefix)
(substitute* ,(cond ((target-hurd64?)
''("lib/libc.so" "lib/libm.so"))
((or (target-x86?)
(target-arm?))
''("lib/libc.so" "lib/libpthread.so"))
(else
''("lib/libc.so")))
(("/[^ ]+/lib/(libc|libm|libh|libpthread|ld)" _ prefix)
(string-append out "/lib/" prefix)))))))))
(inputs
`(("tar" ,(bootstrap-executable "tar" (%current-system)))