Re: Compiling gcc with sysroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christer Solskogen <christer.solskogen@xxxxxxxxx> writes:

>> You should not normally use it
>> when building a cross-compiler.
>>
>
> Can you elaborate on why?

The "it" in the quoted sense refers to using the same value for --prefix
and --with-sysroot.  The reason that is not normally done for a
cross-compiler is that --with-sysroot refers to the root tree of a
target system, directories like /usr/bin and /usr/include.  The programs
found in /usr/bin are programs that run on the target system.  It does
not make sense to install a (normally built) cross-compiler there,
because the cross-compiler would not run on the target system.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux