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

Carl Eugen Hoyos cehoyos at rainbow.studorg.tuwien.ac.at
Sat Dec 20 00:40:14 CET 2008


Hi!

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.

Please comment, Carl Eugen
-------------- next part --------------
Index: configure
===================================================================
--- 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
           host_arch=x86_64
         else
           host_arch=i386


More information about the MPlayer-dev-eng mailing list