[Mplayer-cvslog] CVS: main Makefile,1.244,1.245 cpudetect.c,1.25,1.26

Arpi of Ize arpi at mplayerhq.hu
Mon Jan 27 22:47:56 CET 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv17684

Modified Files:
	Makefile cpudetect.c 
Log Message:
The two attached patches *should* allow for proper
compilation of the AltiVec stuff on both Darwin
and non-Darwin system. They've only been tested
for compilation on Debian using Debian's gcc-3.2.
Romain Dolbeau <dolbeau at irisa.fr>


Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/Makefile,v
retrieving revision 1.244
retrieving revision 1.245
diff -u -r1.244 -r1.245
--- Makefile	18 Jan 2003 19:29:45 -0000	1.244
+++ Makefile	27 Jan 2003 21:47:04 -0000	1.245
@@ -41,7 +41,11 @@
 CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(FREETYPE_INC) $(EXTRA_INC) $(CDPARANOIA_INC) $(SDL_INC) # -Wall
 
 ifeq ($(TARGET_ALTIVEC),yes)
+ifeq ($(TARGET_OS),Darwin)
 CFLAGS += -faltivec
+else
+CFLAGS += -maltivec -mabi=altivec
+endif
 endif
 
 PARTS = libmpdemux libmpcodecs mp3lib liba52 libmpeg2 libavcodec libao2 drivers linux postproc input libvo libaf

Index: cpudetect.c
===================================================================
RCS file: /cvsroot/mplayer/main/cpudetect.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- cpudetect.c	18 Jan 2003 19:29:45 -0000	1.25
+++ cpudetect.c	27 Jan 2003 21:47:04 -0000	1.26
@@ -492,7 +492,7 @@
             canjump = 1;
             
             asm volatile ("mtspr 256, %0\n\t"
-                          "vand v0, v0, v0"
+                          "vand %%v0, %%v0, %%v0"
                           :
                           : "r" (-1));
             



More information about the MPlayer-cvslog mailing list