[FFmpeg-devel] [PATCH] configure: Add toolchain-prefix option.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Jan 19 23:22:05 CET 2015

On Mon, Jan 19, 2015 at 01:37:17PM +0100, Hendrik Leppkes wrote:
> On Mon, Jan 19, 2015 at 1:32 PM, Michael Niedermayer <michaelni at gmx.at>
> wrote:
> > > It's even more annoying if you want to compile for 32 bit on a 64 bit
> > system (you can use -m32 at least in some cases, but this seems simpler and
> > more consistent).
> >
> > hmm
> > at least ubuntu has seperate packages for 32 and 64bit
> > gcc-mingw-w64-i686 and gcc-mingw-w64-x86-64
> > so building for the 32bit variant is just like cross compiling to
> > any other target
> >
> Thats how my toolchain is setup on Windows as well, so i just use
> "--cross-prefix=x86_64-w64-mingw32-" when building for x86_64.
> Note sure what this patch would improve there, I guess allowing the host
> tools to also be built with the 64-bit compiler, but meh? :)

And it doesn't annoy you that you each time have to specify --arch and
It annoyed me horribly because I never know what to specify,
and that's the only (major?) thing it is supposed to fix...
Though an alternative to this would be to just make the cross compile
more clever and if __i386__ is defined by the compiler set arch to
x86 automatically, and set target-os automatically of __MINGW__ or
__CYGWIN__ or __linux__ is defined.
Would that be a more welcome feature?
Or does it make more sense if I just stop being annoyed by having
to type a few extra options with "magic" values?

More information about the ffmpeg-devel mailing list