[MPlayer-dev-eng] [PATCH] mplayer fails to link with newer binutils
seru
seru at gmx.net
Sun Dec 22 13:52:30 CET 2002
El dom, 22 de dic de 2002, a las 11:38:54 +0100, Soeren Sonnenburg dijo:
> On Sun, 2002-12-22 at 12:04, Arpi wrote:
> > Hi,
> [...]
> > > If one compiles for MMX it helps to remove the #include "tabinit.c" in
> > > sr1.c. However I could not test compilation *without* MMX...
> > > --disable-MMX{,2} didn't do anything...
> >
> > --disable-mmx
> >
> > (have you ever try ./configure --help ????)
>
> sure.
>
> I did make distclean ; ./configure --disable-mmx --disable-mmx2 ; make
> and it did still compile with the #include line removed.
> BUT it was compiling the *_MMX stuff.
I think it's supposed to (not sure) http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/mp3lib/Makefile.diff?r1=1.24&r2=1.25
Anyways, I've included a patch, tell me if it works for you.
>
> Soeren.
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
-------------- next part --------------
Index: mp3lib/Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/mp3lib/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- mp3lib/Makefile 1 Sep 2002 18:25:24 -0000 1.30
+++ mp3lib/Makefile 22 Dec 2002 13:26:10 -0000
@@ -3,7 +3,7 @@
SRCS = sr1.c
OBJS = sr1.o
-# OBJS = $(SRCS:.c,.s=.o)
+OPTFLAGS := $(OPTFLAGS:-fomit-frame-pointer=)
ifeq ($(TARGET_ARCH_SGI_MIPS),yes)
OPTFLAGS := $(OPTFLAGS:-O4=-O0)
endif
@@ -13,6 +13,7 @@
OBJS += decode_i586.o
SRCS += decode_MMX.c dct64_MMX.c tabinit_MMX.c
OBJS += decode_MMX.o dct64_MMX.o tabinit_MMX.o
+# Disable SSE code and reenable FPU dct for SSE cpus (fpu code is 0.3% faster and can't get data aligned in dct64_sse.s)
#ifeq ($(TARGET_SSE),yes)
#SRCS += dct64_sse.s
#OBJS += dct64_sse.o
Index: mp3lib/tabinit_MMX.c
===================================================================
RCS file: /cvsroot/mplayer/main/mp3lib/tabinit_MMX.c,v
retrieving revision 1.3
diff -u -r1.3 tabinit_MMX.c
--- mp3lib/tabinit_MMX.c 19 Jan 2002 04:47:32 -0000 1.3
+++ mp3lib/tabinit_MMX.c 22 Dec 2002 13:26:10 -0000
@@ -6,8 +6,9 @@
#include "../mangle.h"
long __attribute__((aligned(8))) decwins [544];
+#define real float
-static long decwin [544];
+real decwin [512+32];
static short intwinbase_MMX[] =
{
0, -1, -1, -1, -1, -1, -1, -2,
More information about the MPlayer-dev-eng
mailing list