[Top][All Lists]

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

Re: Enforcing cross-compilation

From: David Nečas
Subject: Re: Enforcing cross-compilation
Date: Sun, 16 Jan 2011 17:09:07 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Jan 13, 2011 at 10:31:56AM -0700, Eric Blake wrote:
> On 01/13/2011 08:44 AM, David Nečas wrote:
> > 
> > is it possible to enforce cross-compilation by some configure arugments
> > or env vars?
> Yes: call configure with explicit --build and --host arguments that differ.

OK, thanks also to others who answered.  So the simplest method to do

    ./configure --host=i686-pc-mingw32 --build=i386-pc-linux-gnu

generically is

    ./configure --host=i686-pc-mingw32 --build=$(./config.guess)

> When using a cross toolchain, you should also set the --build and --host
> arguments rather than just modifying CC.

Of course I set --host.  I hoped there is some shortcut for setting
--build as above.  But well, running config.guess is not that bad.



reply via email to

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