summaryrefslogtreecommitdiffstats
path: root/src/sdl_gfx.mk
diff options
context:
space:
mode:
authorSylvain Beucler <beuc@beuc.net>2013-10-21 18:53:20 (GMT)
committerSylvain Beucler <beuc@beuc.net>2013-10-21 18:53:20 (GMT)
commit54aed1753975944f16fe93e636acc92e282a2e94 (patch)
treed490f7547d4cfc54b3cad09dfa280e88512447f5 /src/sdl_gfx.mk
parentc80306ed2b33f372d579285db2f03b2f874ba4ad (diff)
downloadmxe-54aed1753975944f16fe93e636acc92e282a2e94.zip
mxe-54aed1753975944f16fe93e636acc92e282a2e94.tar.gz
mxe-54aed1753975944f16fe93e636acc92e282a2e94.tar.bz2
sdl_gfx: 64-bit support, by disabling buggy MMX supported (i386 and x86_64 fixed in upstream trunk)
Diffstat (limited to 'src/sdl_gfx.mk')
-rw-r--r--src/sdl_gfx.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sdl_gfx.mk b/src/sdl_gfx.mk
index f9d0dbb..05ae172 100644
--- a/src/sdl_gfx.mk
+++ b/src/sdl_gfx.mk
@@ -17,9 +17,14 @@ define $(PKG)_UPDATE
head -1
endef
+# --disable-mmx: the GCC ASM never worked properly (segfaults), and
+# doesn't compile on 64bit. This is fixed for the future SDL2_gfx:
+# http://sourceforge.net/p/sdl2gfx/code/HEAD/tree/trunk/SDL2_imageFilter.c
+# No plans for SDL(1)_gfx, but see https://gitorious.org/sdlgfx/asm/
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
+ --disable-mmx \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-sdl-prefix='$(PREFIX)/$(TARGET)'
@@ -30,5 +35,3 @@ define $(PKG)_BUILD
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_gfx.exe' \
`'$(TARGET)-pkg-config' SDL_gfx --cflags --libs`
endef
-
-$(PKG)_BUILD_x86_64-w64-mingw32 =