Commit a4119701 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Ugly patch to make the mmx compile on MacIntel. This might be a GCC ASM bug in 4.0.1

parent 17c15b2e
......@@ -145,12 +145,12 @@ ifdef HAVE_DARWIN_OS
.dvdcss .dvdnav .dvdread .dvbpsi .live .caca .mod \
.png .gpg-error .gcrypt .gnutls .opendaap .cddb .cdio .vcdimager .SDL_image \
.glib .libidl .gecko .mpcdec .dirac_encoder .dirac_decoder .aclocal \
.libdca .tag
.libdca .tag .goom2k4
# .expat .clinkcc don't work with SDK yet
# .glib .libidl .gecko are required to build the mozilla plugin
# .mozilla will build an entire mozilla. it can be used if we need to create a new .gecko package
ifneq ($(HOST),i686-apple-darwin8)
all: .goom2k4 .x264
all: .x264
endif
else
......@@ -1124,6 +1124,7 @@ goom: goom$(GOOM2k4_VERSION).tar.gz
$(EXTRACT_GZ)
ifdef HAVE_DARWIN_OS
patch -p 0 < Patches/goom.patch
patch -p 0 < Patches/goom2k4-0-mmx.patch
endif
ifdef HAVE_WIN32
(cd $@; dos2unix configure.in)
......
diff -ruN goom.orig/src/xmmx.c goom/src/xmmx.c
--- goom.orig/src/xmmx.c 2006-10-01 22:10:15.000000000 +0200
+++ goom/src/xmmx.c 2006-10-01 23:45:59.000000000 +0200
@@ -69,8 +69,8 @@
*/
asm volatile
- ("#1 \n\t movq %[brutS], %%mm0"
- "#1 \n\t movq %[brutD], %%mm1"
+ ("#1 \n\t movq (%[brutS]), %%mm0"
+ "#1 \n\t movq (%[brutD]), %%mm1"
"#1 \n\t psubd %%mm0, %%mm1" /* mm1 = D - S */
"#1 \n\t movq %%mm1, %%mm2" /* mm2 = D - S */
"#1 \n\t pslld $16, %%mm1"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment