mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: cross-base: Build Binutils with `--with-sysroot=/'.
* gnu/packages/cross-base.scm (cross-binutils): Use `--with-sysroot=/'.
This commit is contained in:
parent
9306d350b2
commit
c8fa51f2d6
1 changed files with 7 additions and 2 deletions
|
@ -56,8 +56,13 @@
|
||||||
;; library. This works because as a side effect
|
;; library. This works because as a side effect
|
||||||
;; `genscripts.sh' sets `USE_LIBPATH=yes', which tells
|
;; `genscripts.sh' sets `USE_LIBPATH=yes', which tells
|
||||||
;; elf32.em to use DT_RUNPATH in its search list.
|
;; elf32.em to use DT_RUNPATH in its search list.
|
||||||
`(cons "--with-sysroot=/no-such-path"
|
;; See <http://sourceware.org/ml/binutils/2013-05/msg00312.html>.
|
||||||
,flags)))))))
|
;;
|
||||||
|
;; In theory choosing / as the sysroot could lead ld
|
||||||
|
;; to pick up native libs instead of target ones. In
|
||||||
|
;; practice the RUNPATH of target libs only refers to
|
||||||
|
;; target libs, not native libs, so this is safe.
|
||||||
|
`(cons "--with-sysroot=/" ,flags)))))))
|
||||||
(cross binutils target)))
|
(cross binutils target)))
|
||||||
|
|
||||||
(define* (cross-gcc target
|
(define* (cross-gcc target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue