autoconf
[Top][All Lists]
Advanced

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

Re: Enforcing cross-compilation


From: Eric Blake
Subject: Re: Enforcing cross-compilation
Date: Thu, 13 Jan 2011 10:31:56 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

On 01/13/2011 08:44 AM, David Nečas wrote:
> 
> Hello,
> 
> 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.

> 
> I cross-compile for win32 using the mingw32 cross-compiler toolchain but
> I *can* run the created excutables as I have wine installed.  So
> configure concludes I am not cross-compiling and this leads to various
> problems later.

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

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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