This is based on binutils-2.13.90.0.18. This patch was by Zach Welch. Allows the easy creation of the binutils part of a cross compiler toolchain. Can also install the normal binutils. Reproducible: Always Steps to Reproduce: 1. emerge binutils Install binutils as per normal. 2. CCHOST=sparc-unknown-linux-gnu USE=build emerge binutils Installs binutils as part of a tool chain for $CCHOST. In this case sparc.
Created attachment 9715 [details, diff] patch for binutils-2.13.90.0.18
For some odd reason, I find myself supporting this ebuild too.
1) Same thing as gcc .. use 'cross-check `echo ${P} | cut -d. -f1,2`', and not the hardcoded version. 2) perl have moved from sys-devel to dev-lang 3) I removed the static stuff in the current cvs ebuild, as it breaks binutils.
Created attachment 10253 [details, diff] 6/4/2003 patch This ebuild now 1 compiles native binutils 2 creates cross tool chain 3 can be cross compiled
*** Bug 16740 has been marked as a duplicate of this bug. ***
Created attachment 13035 [details, diff] cross compile patch for binutils 2.14.90.0.2 This is a patch against the current binutils-2.14.90.2 ebuild. With the newer binutils version is it possible to build mips cross compilers again.
hmmm..... how long you thin gentoo user's must wait for this feature?
i can look into that
in order for this to happen portage needs to get on the ball and support better SLOT's when i tested this setup i found i could pull in another cross compiling binutils, but not more than that ... env CCHOST=sh4-unknown-linux-gnu emerge binutils <got sh4 binutils on my system> env CCHOST=sparc-unknown-linux-gnu emerge binutils <got sparc but sh4 was trimmed ??> yes, i double checked the SLOT's, they were different, yet portage punted the previous toolchain
could the newly created crossdev tool make this bug obsolete? sinc, Alex
no crossdev is a hack to work around a portage that cant handle cross compiling
use portage-2.0.51 then just run: env CTARGET="sh4-pc-linux-uclibc" emerge binutils (for binutils-2.15.92.0.2-r2 or better ... i'll try to backport the work) just be weary that portage wont handle diff SLOTs of binutils-2.15.92.0.2-r2 properly ... you'll have to move stuff around in /var/db/pkg/sys-devel/ for now