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: Andreas Schwab
Subject: Re: How AC_PROG_CC find the cross-compiler?
Date: Tue, 25 Jul 2006 16:13:08 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

"Tzu-Chien Chiu" <address@hidden> writes:

> Thank you. It works now.
>
> But I am confused. 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
>
> In (1), target is used to specify where the built program will run.
> But in (2), host instead is used.

It is always the *host* is where the built program will run.  When you
build a cross compiler, the built compiler will run on the *host*.  The
*target* (which is only meaningful in compiler-related tools) does not
come into play until you actually run the cross compiler, i.e. when you
build something with it.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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