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
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf