Can somebody give a clue how to specify the binutils to be used when
building a Linux kernel?
Grant Edwards <grant.b.edwards@gmail.com> writes:
Can somebody give a clue how to specify the binutils to be used when
building a Linux kernel?
$ man binutils-config
The binutils-config script allows you to switch between different
versions of binutils when you have installed multiple copies (see USE=multislot). It also allows you to manage multiple cross-compiling targets simultaneously.
Grant Edwards <grant.b.edwards@gmail.com> wrote:
On 2022-10-10, <flzdjhmtax@wylie.me.uk> (Alan J. Wylie) <flzdjhmtax@wylie.me.uk> 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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 489 |
Nodes: | 16 (2 / 14) |
Uptime: | 12:24:34 |
Calls: | 9,665 |
Files: | 13,712 |
Messages: | 6,167,475 |