bug-automake
[Top][All Lists]
Advanced

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

Re: [WISH] Local target in cross compialtion


From: Jérôme Pouiller
Subject: Re: [WISH] Local target in cross compialtion
Date: Thu, 8 Jun 2006 17:25:47 +0200
User-agent: KMail/1.9.1

Le Jeudi 8 Juin 2006 16:05, Stepan Kasal a écrit :
> Hello,
>
> On Thu, Jun 08, 2006 at 10:58:20AM +0200, Jezz wrote:
> > Hmm... You should use "BUILD" when you use triplet
> > build/host/target (for exemple, when you compile a compiler).
>
> well, if you are not building a compiler, the target patform is not
> relevant, but the previous two still apply:
> - the ``build'' platform is the computer where you type ./configure
>   and make, and where the compiler and linker runs.
> - the ``host'' platform is where the just built binaries will be
>   installed
>
> So host-cc is what you use regularly, but the tools which are to be
> run suring this build should be compiled by build-cc, ie. compiled
> for the build platform, instead of the host platform.
>
> Consequently, this
>
> > > >   HOSTCC=${HOSTCC:=${build_alias}-gcc}
> >
> > Error here : HOSTCC=${HOSTCC:=${host_alias}-gcc}
>
> should really be
>
>       : ${CC_FOR_BUILD:=${build_alias}-gcc}
ok, thank you for your lights.

One last question : In Makefile of linux kernel, HOSTCC is used to name  
compiler for the build platform, no?


-- 
Jérôme Pouiller (Jezz) <jerome.pouiller AT gmail.com>




reply via email to

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