diff options
Diffstat (limited to 'package/sdl_gfx/sdl_gfx.mk')
-rw-r--r-- | package/sdl_gfx/sdl_gfx.mk | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/package/sdl_gfx/sdl_gfx.mk b/package/sdl_gfx/sdl_gfx.mk index e3ff6306e..c1c7f9101 100644 --- a/package/sdl_gfx/sdl_gfx.mk +++ b/package/sdl_gfx/sdl_gfx.mk @@ -11,7 +11,14 @@ SDL_GFX_DEPENDENCIES = sdl SDL_GFX_CONF_OPT = \ --with-sdl-prefix=$(STAGING_DIR)/usr \ --disable-sdltest \ - --enable-static \ - $(if $(BR2_X86_CPU_HAS_MMX),--enable-mmx,--disable-mmx) + --enable-static + +# Even though x86_64 processors support MMX, the MMX-specific assembly +# code in sdl_gfx is IA32 specific, and does not build for x86_64. +ifeq ($(BR2_i386)$(BR2_X86_CPU_HAS_MMX),yy) +SDL_GFX_CONF_OPT += --enable-mmx +else +SDL_GFX_CONF_OPT += --disable-mmx +endif $(eval $(autotools-package)) |