[FFmpeg-devel] [PATCH] configure: support MSYS2
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Jan 25 17:02:58 CET 2015
On Sun, Jan 25, 2015 at 03:59:12PM +0100, Hendrik Leppkes wrote:
> On Sun, Jan 25, 2015 at 3:26 PM, Hendrik Leppkes <h.leppkes at gmail.com>
> wrote:
>
> > MSYS2 uses a system name of "MSYS_NT-6.3" instead of "MINGW32_NT-6.3" in
> > MSYS1.
> >
>
> Apparently this isn't quite correct, and you have to start MSYS2 with a
> special batch file that overrides this for you.
> Just running bash.exe or sh.exe from a DOS prompt results in this and is
> apparently considered "wrong usage".
I don't really see anything wrong with this, however I'd rather have
a compiler-based detection.
I.e. if the compiler define __MINGW32__ set the host to mingw (unless
set explicitly).
This should also address my other annoyance that you have to specify
--host when it really should be obvious that you are cross-compiling to
MINGW for example.
If nobody else cares about it I might work on it.
And if you have objections, now is a good time.
Because I've dropped enough variants of this because nobody cares even
though it's a constant annoyance as seen by the various issues and
different patches that all go back to our configure being too stupid
to figure out on its own what is compiling for even when it should be obvious.
More information about the ffmpeg-devel
mailing list