Partial revert "gnu: bootstrap: %bootstrap-glibc: Also fix libm.so."

This partially reverts commit 204fe1b1f0.

This part accidentally triggered a world rebuild for non-x86 architectures.

Change-Id: I921984ef5eff58792ffc17b64675db6a8e79695c
This commit is contained in:
Zheng Junjie 2024-12-04 23:24:11 +08:00
parent 7b64a96326
commit 126a2e8cb4
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -775,11 +775,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)
(string-append out "/lib/" prefix)))))))))
,(if (target-hurd64?)
'(substitute* '("lib/libc.so" "lib/libm.so")
(("/[^ ]+/lib/(libc|libm|libh|ld)" _ prefix)
(string-append out "/lib/" prefix)))
'(substitute* "lib/libc.so"
(("/[^ ]+/lib/(libc|ld)" _ prefix)
(string-append out "/lib/" prefix))))
#t))))))
(inputs
`(("tar" ,(bootstrap-executable "tar" (%current-system)))
("xz" ,(bootstrap-executable "xz" (%current-system)))