Re: [hatari-devel] mingw-w64 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: Nicolas Pomarède <npomarede@xxxxxxxxxxxx>
- Subject: Re: [hatari-devel] mingw-w64
- From: Christer Solskogen <christer.solskogen@xxxxxxxxx>
- Date: Thu, 26 Sep 2013 11:06:51 +0200
- Cc: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Dt1dU5fxfFW78zpdDPqCWQpgH5sHqXkB9x46f7fatHA=; b=1Gta15NYUuYv/a/jzclGqnDVLwhDfWQHhY+k9QkpK4VTdW4mS3PfCEPZ/IxVw+yvKb +Euzdkf6z9M0BVZArF0MUG1se74NPdpueBj+V6UmHgTz6bHSakcjr34Rv+TtfxLj94FD 2wpRCTB6k3ymD5PqWA300cfPs2v6WhxxMcJcMFbUbhhsOwoLmqAGAmhu3bVYZEsb5oCq 2Eca7acMPReRQi/1o3HXJj/1ELLR2pSqcL/9QMC8r9FHCdOt7O4stiYfT06MiORlg/yy MG1YsH7biySKYV0AUvv7s+YnUMttj8jlFC6wNUKHg24iv9pK/Btkv1P1pfiSJE0IgTHg 8cFg==
On Thu, Sep 26, 2013 at 12:07 AM, Nicolas Pomarède
<npomarede@xxxxxxxxxxxx> wrote:
> I changed Toolchain-mingw32.cmake a little to allow changing the mingw's
> values using cmake -D parameters, instead of editing the file.
>
> In your case, you would use for example :
> -DMINGW_EXE_PREFIX=x86_64-w64-mingw32 -DMINGW_ROOT_PATH=i686-w64-mingw32
>
Cool, but I think you only need to set one variable. The system should
be able to figure out the rest it self.
I mean, the setting over is meaningless since it will use a 64bit
compiler with a sysroot that contains 32bit libraries.
> I also added 2 new targets to "configure" to build 32 or 64 bit versions of
> the Windows hatari.exe using mingw-w64.
>
> Note that your "i686-w64-mingw32/" under sysroot is not "standard" ; I
> looked at a few distributions providing mingw and they all use
> "sysroot/mingw". If you want to use "configure" as it is, you might need to
> create a symlink between "i686-w64-mingw32/" and "mingw/"
>
Then the distributions are wrong. You only need that mingw symlink
when building the cross compiler, not for using it.
The i686-w64-mingw32 (and x86_64-w64-mingw32) are very standard when
using i686-w64-mingw32 or x86_64-w64-mingw32 as a target for binutils
and gcc.
Note that they are only standard for mingw-w64, they are not standard
for building other targets.
--
chs,