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

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Dec 19 20:59:17 CET 2008


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




More information about the MPlayer-dev-eng mailing list