Re: [hatari-devel] mingw-w64

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


On 22/09/2013 12:45, Christer Solskogen wrote:
On Sat, Sep 21, 2013 at 11:42 PM, Nicolas Pomarède
<npomarede@xxxxxxxxxxxx> wrote:

Anyway, I added the "get_filename_component" to the toolchain file.
Hopefully it should not break anyone's cross compilation.


Goodie! How about the toolchain files for x86_64-w64-mingw32 and
i686-w64-mingw32? :-)



I'm not sure it's "useful" to add them. Every distro will have its name/variation for the mingw cross compiler (i586/i686/x86_64, 32/64, ...).

If we add these 2 ones, then other people might tell "why not adding mine", which we can't do for every distrib.

Ideal solution would be that all distrib use some alias for mingw in /etc/alternative or some external config script that could be ran by cmake to have Toolchain-mingw32.cmake as distro agnostic as possible.

As I don't think this will happen, I think Toolchain-mingw32.cmake should be considered more like a template than like a definitive solution for all cases. If user want to add more toolchain, duplicate Toolchain-mingw32.cmake as another filename and add your own values ; it won't be overwritten by "hg pull".

For now, as some values must be fixed in Toolchain-mingw32.cmake , it's tailored to my distrib ;-)

Nicolas



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