gnu: cross-base: Build Binutils with `--with-sysroot=/'.

* gnu/packages/cross-base.scm (cross-binutils): Use `--with-sysroot=/'.
This commit is contained in:
Ludovic Courtès 2013-06-26 14:31:24 +02:00
parent 9306d350b2
commit c8fa51f2d6
1 changed files with 7 additions and 2 deletions

View File

@ -56,8 +56,13 @@
;; library. This works because as a side effect
;; `genscripts.sh' sets `USE_LIBPATH=yes', which tells
;; elf32.em to use DT_RUNPATH in its search list.
`(cons "--with-sysroot=/no-such-path"
,flags)))))))
;; See <http://sourceware.org/ml/binutils/2013-05/msg00312.html>.
;;
;; 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)))
(define* (cross-gcc target