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

Michael Niedermayer michaelni at gmx.at
Mon Jan 19 13:32:19 CET 2015


On Mon, Jan 19, 2015 at 07:43:41AM +0100, Reimar Döffinger wrote:
> On 19.01.2015, at 03:05, Michael Niedermayer <michaelni at gmx.at> wrote:
> > On Thu, Jan 01, 2015 at 10:00:25AM +0100, Reimar Döffinger wrote:
> >> Useful to select e.g. between mingw32, 32-bit mingw64 and 64-bit mingw64
> >> toolchains, which all are not cross-compilation toolchains.
> >> 
> >> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> > 
> > is this intended for building with mingw* on windows ?
> > if so it should be ok
> > the patch just confused me a bit as i build with mingw64 (32&64bit)
> > just fine on linux without any of this
> 
> Yes, but you have to specify --arch and --target-os, and not sure if disabling runtime-cpudetection would work etc.


> 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


> 
> > also maybe it could be more clearly documented what this is intended
> > for
> 
> Ok, I'll try to improve the commit message, but where else to document it/how?
> --help doesn't seem like a good place for long explanations (though maybe I can think of a better short explanation).
> Maybe "select a different toolchain without cross-compiling, e.g. for compiling for i686 on a x86_64 system or with mingw64 on cygwin"?

ok
and the wiki is maybe the best place to document

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150119/1ec3f2b7/attachment.asc>


More information about the ffmpeg-devel mailing list