mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
gnu: cross-libc: Build fix for the Hurd.
This fixes cross building of coreutils, e.g. ./pre-inst-env guix build --target=i586-pc-gnu coreutils * gnu/packages/cross-base.scm (cross-libc): Add -lhurduser, -lmachuser for the Hurd.
This commit is contained in:
parent
d82539d35f
commit
b3bd475696
1 changed files with 11 additions and 1 deletions
|
@ -491,7 +491,17 @@ (define* (cross-libc target
|
||||||
',%gcc-cross-include-paths)
|
',%gcc-cross-include-paths)
|
||||||
(setenv "CROSS_LIBRARY_PATH"
|
(setenv "CROSS_LIBRARY_PATH"
|
||||||
(string-append kernel "/lib")) ; for Hurd's libihash
|
(string-append kernel "/lib")) ; for Hurd's libihash
|
||||||
#t)))))))
|
#t)))
|
||||||
|
,@(if (hurd-triplet? target)
|
||||||
|
'((add-after 'install 'augment-libc.so
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out")))
|
||||||
|
(substitute* (string-append out "/lib/libc.so")
|
||||||
|
(("/[^ ]+/lib/libc.so.0.3")
|
||||||
|
(string-append out "/lib/libc.so.0.3"
|
||||||
|
" libmachuser.so libhurduser.so"))))
|
||||||
|
#t)))
|
||||||
|
'())))))
|
||||||
|
|
||||||
;; Shadow the native "kernel-headers" because glibc's recipe expects the
|
;; Shadow the native "kernel-headers" because glibc's recipe expects the
|
||||||
;; "kernel-headers" input to point to the right thing.
|
;; "kernel-headers" input to point to the right thing.
|
||||||
|
|
Loading…
Reference in a new issue