Cross-compiling gcc? (sysroot confusion)
Christer Solskogen
christer.solskogen@gmail.com
Fri Nov 7 10:57:00 GMT 2014
On 07.11.2014 11:43, Pierre Ossman wrote:
> On Wed, 5 Nov 2014 15:35:16 +0100
> Pierre Ossman <ossman@cendio.se> wrote:
>
>>>
>>> If not you can do something like this: --with-gmp=/sysroot (you don't need to add --with-mpfr and --with-mpc as long as you used --with-gmp) --host=i686-pc-linux-gnu --with-build-sysroot=/sysroot --with-sysroot=/
>>
>> My plan is that that final gcc will be run as /usr/bin/gcc after all
>> of /sysroot has been moved to a separate machine, yes.
>>
>> So it sounds like --with-build-sysroot is what I need. Thanks.
>>
>
> Unfortunately this isn't working. The problem is that it tries to test
> execute programs. Which of course fails as it won't find ld-linux.
>
Eh, it should't do that. Try adding --build=${HOST}
But I see now that you are using such an old libc and gcc that my tips
probably won't work.
More information about the Gcc-help
mailing list