[MPlayer-dev-eng] [PATCH]Allow 32bit compilation on 64bit OS

Giacomo Comes comes at naic.edu
Sat Dec 20 00:16:52 CET 2008


On Fri, Dec 19, 2008 at 11:23:01PM +0100, Reimar Döffinger wrote:
> On Fri, Dec 19, 2008 at 05:52:11PM -0400, Giacomo Comes wrote:
> > --target=pentium4-linux is a bonus. If you don't set the target gcc will compile
> > for the i386 target. A 64-bit cpu can do more :-).
> 
> I am fairly sure that without --target it will compile for x86_64 which
> obviously will fail with a 32 bit toolchain (or if you're "lucky" it
> will compile without any assembler optimizations).

Right, configure will select the option --mtune=native for
the compiler and the compilation will fail.

Actually the i386 target is the one suggested in the FAQ:
http://www.mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html#id2682697
I think the FAQ can be changed to:
--target=pentium4-linux --with-extralibdir=/lib:/usr/lib

Giacomo



More information about the MPlayer-dev-eng mailing list