This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling gcc with sysroot


Christer Solskogen <christer.solskogen@gmail.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]