qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] tcg/i386: Fix build for systems without working


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH] tcg/i386: Fix build for systems without working cpuid.h (MacOSX, Win32)
Date: Fri, 21 Feb 2014 06:53:29 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Am 20.02.2014 23:18, schrieb Peter Maydell:
> On 20 February 2014 21:18, Stefan Weil <address@hidden> wrote:
>> MinGW-w64's gcc has cpuid.h, so my 32 and 64 bit cross builds work
>> without problems. We can use that code for MinGW, too, but we could also
>> stop supporting MinGW (which has several other deficits).
> 
> We need the conditionals for MacOSX builds anyway, so we
> don't need to drop MinGW for this. (I compile with the 32 bit
> version rather than -w64 because I was able to get that to
> install on my Ubuntu box, whereas the -w64 seemed to have
> dependency issues/conflicts somehow. I figured the 32 bit
> version was good enough for detecting the typical "long is
> a funny size and we don't build" issues.)

One of my hosts runs Ubuntu precise. mingw-w64 works fine here and
includes both 32 bit and 64 compilers and libraries (the -w64 in its
name might be misleading). Maybe you will also need mingw-w64-tools, and
you can also add g++-mingw-w64 (which also includes two compilers).

Run configure with --cross-prefix=i686-w64-mingw32- or
--cross-prefix=x86_64-w64-mingw32- to build 32 or 64 bit executables.

Stefan





reply via email to

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