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: Stepan Kasal
Subject: Re: [WISH] Local target in cross compialtion
Date: Thu, 8 Jun 2006 16:05:30 +0200
User-agent: Mutt/1.4.2.1i

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}

But with this approach you are on your own, because the usual checks
are not performed.

I think it is really easier to build the project twice:
- first for the build platform
- and the for the cross-compile, but using the previously built
  native tools where necessary

The first build can be really stripped down, building only the
necesary minimum.

The whole process can be automated; the CVS version of GNU Texinfo on
savannah can serve as an example.

Have a nice day,
        Stepan




reply via email to

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