[MPlayer-dev-eng] [PATCH] configure: unset some CPU-specific variables not relevant to arch

Jan Knutar jknutar at nic.fi
Sun Apr 13 18:15:15 CEST 2008


The Problem:
Parameters such as HAVE_MMX appear in config.mak with value = auto, a 
recent-ish change in libavcodec's Makefile makes compilation of mmx and 
others depend on ifdef HAVE_MMX. When that variable is left defined as 
"auto", the build system tries to build MMX and SSE code on sparc64, and 
others.

Other suspicious things can be found with 'grep auto config.mak' after 
configure.

The patch:
Unset _mmx & co if not on x86, unset altivec if not on ppc|powerpc, 
unset some arm parameters if not on arm.

Fixes the compile on sparc64/netbsd and sparc64/freebsd, and keeps 
mmx/sse on x86_64 and x86_32. Is it the right place to unset, does it 
break crosscompilation? I don't know..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure-unsetauto.patch
Type: text/x-diff
Size: 442 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080413/e4456256/attachment.patch>


More information about the MPlayer-dev-eng mailing list