Am 20.02.2014 23:18, schrieb Peter Maydell: > On 20 February 2014 21:18, Stefan Weil <s...@weilnetz.de> 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