[Zlib-devel] CHOST option

Volker Grabsch vog at notjusthosting.com
Mon Apr 26 19:24:01 EDT 2010


Enrico Weigelt <weigelt at metux.de> schrieb:
> * Volker Grabsch <vog at notjusthosting.com> schrieb:
> 
> > IBTD. In mingw-cross-env, we only pass the toolchain commands
> > via the environment if there is no way around it.
> > 
> > Most packages are cross compiled via either
> > 
> >     make CROSS=i686-pc-mingw32-
> > 
> > or via:
> > 
> >     ./configure --host=i686-pc-mingw32
> >     make
> 
> This only works in the specific case that you have only *one*
> toolchain per target-tuple and its commands are available
> under these names.

That is by far the most common case, so providing a handy
shortcut for that case is a very sensible thing to do.

> The generic case is that you have an unspecified number of 
> toolchains for any target residing under some prefix/directory,
> (eg. like those built w/ crosstool). For this generic case,
> your approach is unusable.

However, in that case the first approach ("make CROSS=i686-pc-mingw32-")
would still work, wouldn't it?

    make CROSS=/path/to/toolchain/bin/
or:
    make CROSS=/path/to/toolchain/bin/i686-xx-yyy-

And in the end, zlib's CROSS_PREFIX is exactly that, isn't it?


Greets,

    Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR




More information about the Zlib-devel mailing list