All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Patch Tracking <patches@linaro.org>,
	QEMU Developers <qemu-devel@nongnu.org>,
	Richard Henderson <rth@twiddle.net>
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	[thread overview]
Message-ID: <5306E9D9.9000804@weilnetz.de> (raw)
In-Reply-To: <CAFEAcA_vHtN1PQhNJFW9qE+qcTAf6udStuAAaZHJrgwqatji+w@mail.gmail.com>

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

  reply	other threads:[~2014-02-21  5:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 17:50 [Qemu-devel] [PATCH] tcg/i386: Fix build for systems without working cpuid.h (MacOSX, Win32) Peter Maydell
2014-02-20 17:53 ` Peter Maydell
2014-02-20 19:22 ` Richard Henderson
2014-02-20 21:18 ` Stefan Weil
2014-02-20 22:18   ` Peter Maydell
2014-02-21  5:53     ` Stefan Weil [this message]
2014-02-21 16:32       ` Peter Maydell
2014-02-20 23:55 ` Brad Smith
2014-02-21  0:09   ` Peter Maydell
2014-02-21  0:48     ` Brad Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5306E9D9.9000804@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.