[prev in list] [next in list] [prev in thread] [next in thread] 

List:       autoconf
Subject:    Re: Enforcing cross-compilation
From:       David =?utf-8?B?TmXEjWFz?= <yeti () physics ! muni ! cz>
Date:       2011-01-16 16:09:07
Message-ID: 20110116160907.GV2468 () physics ! muni ! cz
[Download RAW message or body]

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
this

    ./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.

Regards,

Yeti



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic