mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
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:
parent
2463d999d7
commit
74311f7268
1 changed files with 8 additions and 4 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue