Re: [hatari-devel] mingw-w64

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


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,



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/