autoconf
[Top][All Lists]
Advanced

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

Re: How AC_PROG_CC find the cross-compiler?


From: Keith MARSHALL
Subject: Re: How AC_PROG_CC find the cross-compiler?
Date: Tue, 25 Jul 2006 15:30:07 +0100

Tzu-Chien Chiu wrote:
> But I am confused.

Yep.  It can be a bit difficult to get your head around it :-)

> Are the definitions of build, host and target (to
> configure script) different in the cases:
> (1) building the cross-compiler
> (2) building a software with a cross-compiler

Nope.  They are just the same.

> In (1), target is used to specify where the built program will
> run.

No, it isn't.  When you build a cross compiler, the `built' program
is the cross compiler itself, and it will run on the `host'; it's
only programs subsequently built by the cross compiler which will
run on `target'.  If you like:

  build    is, unequivocally, where you are building.
  host     is where the program you are building will run.
  target   is where programs built by the program you are
           building will run, (i.e. programs built by the
           built program).

> But in (2), host instead is used.

No, `host' is *always* used to specify where the program you are
building will run.

Hope this clarifies it.

Regards,
Keith.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]