On Oct 10, 2022, 12:46 PM Alan J. Wylie wrote: > Grant Edwards <[email protected]> wrote: > > On 2022-10-10, <[email protected]> (Alan J. Wylie) > > <[email protected]> wrote: > >> $ man binutils-config > >> > >> [...] > > > > AFAICT, that changes the binutils configuraiton for the entire > > system. That's not what I want to do. I want to use specific binutils > > versions for specific make invocations. [...]
> Perhaps, pretend you're cross compiling? Perhaps you sort of are, > anyway, even if just for other package versions on the same > architecture? > Might "crossdev" help? > > https://wiki.gentoo.org/wiki/Embedded_Handbook/General/Creating_a_cross-compiler > > $ crossdev --help > Usage: crossdev [options] --target TARGET Thanks! That looks promising. I was somewhat aware of crossdev, but it hadn't occured to me to use it to to generate native toolchains with various versions of gcc/binutils. In my case, I wouldn't need any libc at all, but that shouldn't be a big problem. -- Grant

