Re: How AC_PROG_CC find the cross-compiler?

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

 



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.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux