[MPlayer-dev-eng] [PATCH]Allow CFLAGS and cc for 32bit compilation

Aurelien Jacobs aurel at gnuage.org
Mon Dec 22 23:40:01 CET 2008


Diego Biurrun wrote:

> On Sat, Dec 20, 2008 at 12:40:14AM +0100, Carl Eugen Hoyos wrote:
> >
> > Attached is a new version of the patch to allow 32 bit compilation on 64  
> > bit systems with --cc='cc -m32', based on Reimars suggestion.
> > Please forgive me if the shell magic I use is wrong, I'm not very good at 
> > it.
> 
> All of you seem to like it and it seems to work for you.  I don't have
> a 64 bit system, so fine for me.
> 
> > --- configure	(revision 28166)
> > +++ configure	(working copy)
> > @@ -1340,7 +1340,8 @@
> >        ia64) host_arch=ia64 ;;
> >        x86_64|amd64)
> >          if [ -n "`$_cc -dumpmachine | sed -n '/^x86_64-/p;/^amd64-/p'`" -a \
> > -             -z "`echo $CFLAGS | grep -- -m32`"  ]; then
> > +             -z "`echo $CFLAGS | grep -- -m32`" -a \
> > +             -z "`echo $_cc | grep -- -m32`" ]; then
> 
> Use $() instead of `` while you are at it.

And no need to use 2 grep:
  echo $_cc $CFLAGS | grep -- -m32

Aurel



More information about the MPlayer-dev-eng mailing list