[MPlayer-dev-eng] [PATCH] Fix --enable-runtime-cpudetection under MinGW
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Jan 5 21:35:51 CET 2007
Hello,
On Fri, Jan 05, 2007 at 09:21:35PM +0100, Bj?rn Sandell wrote:
[...]
> The problem is that if --enable-runtime-cpudetection is used "iproc"
> won't be set by configure an we'll end up with the situation above. A
> simple fix would be to default iproc to i386, eg
>
> Index: configure
> ===================================================================
> --- configure (revision 21830)
> +++ configure (working copy)
> @@ -879,6 +879,7 @@
>
> fi # test "$_runtime_cpudetection" = no
>
> +iproc=386
>
> case "$host_arch" in
> i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
Oh, I see. But since this problem does not affect e.g. AMD64 and also
runtime cpudetection AFAIK will not support 386 anyway, I suggest
something like this instead:
Index: configure
===================================================================
--- configure (revision 21828)
+++ configure (working copy)
@@ -886,6 +887,8 @@
_target_arch_x86="TARGET_ARCH_X86 = yes"
_def_arch="#define ARCH_X86_32 1"
_target_arch="TARGET_ARCH_X86_32 = yes"
+ iproc=486
+ proc=i486
if test "$_runtime_cpudetection" = no ; then
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list