[MPlayer-dev-eng] [PATCH]Allow 32bit compilation on 64bit OS
Giacomo Comes
comes at naic.edu
Fri Dec 19 22:04:36 CET 2008
On Fri, Dec 19, 2008 at 07:59:17PM +0000, Carl Eugen Hoyos wrote:
> Hi Diego!
>
> Diego Biurrun <diego <at> biurrun.de> writes:
>
> > > I needed attached patch to play WMA9 files.
> > >
> > > Please comment, Carl Eugen
> > >
> > > --- configure (revision 28162)
> > > +++ configure (working copy)
> > > @@ -1340,7 +1340,7 @@
> > > x86_64|amd64)
> > > if [ -n "`$_cc -dumpmachine | sed -n '/^x86_64-/p;/^amd64-/p'`" -a \
> > > - -z "`echo $CFLAGS | grep -- -m32`" ]; then
> > > + -z "`echo $_cc | grep -- -m32`" ]; then
> >
> > I don't see how this can be equivalent, _cc should not contain any
> > CFLAGS. What is the exact purpose of your patch?
>
> The exact purpose of the line I'm changing here is to detect 32 bit compilation
> on 64 bit systems. Since I'm not aware how to set $CFLAGS from the configure
> line, I tried ./configure --cc='gcc -m32' (also works with icc 11.0), but needed
> attached patch to successfully convince configure that I _really_ want to
> compile a 32 bit binary (that is required to play WMA9 files).
>
> Please explain how to fix this differently (or if I'm wrong and it is still
> possible to set $CFLAGS) if you don't want me to commit, thank you, Carl Eugen
I compile 32-bit mplayer on suse 11.0 64-bit without any problem in this way:
./configure --cc="gcc -m32" --as="as --32"
make CC="ccache gcc -m32" install
or just use:
make CC="gcc -m32" install
if you don't use ccache.
Giacomo
More information about the MPlayer-dev-eng
mailing list