[FFmpeg-devel] [PATCH] configure: support MSYS2

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Jan 25 23:00:28 CET 2015

On Sun, Jan 25, 2015 at 06:43:54PM +0100, Michael Niedermayer wrote:
> On Sun, Jan 25, 2015 at 05:02:58PM +0100, Reimar Döffinger wrote:
> > 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.
> i dont use "--host*" for my mingw building
> just -cc='ccache x86_64-w64-mingw32-gcc' --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --target_exec=wine

Sorry, I meant --target-os, not --host.
And --arch is something configure could figure out equally well from the
compiler in most cases (__i386__, __x86_64__, __arm__ etc defines).

More information about the ffmpeg-devel mailing list