diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk index 2f588643d5..99fc469f6a 100644 --- a/package/mplayer/mplayer.mk +++ b/package/mplayer/mplayer.mk @@ -259,6 +259,13 @@ ifeq ($(BR2_i386),y) MPLAYER_CFLAGS += -fomit-frame-pointer endif +ifeq ($(BR2_X86_CPU_HAS_MMX),y) +MPLAYER_CONF_OPTS += --yasm=$(HOST_DIR)/usr/bin/yasm +MPLAYER_DEPENDENCIES += host-yasm +else +MPLAYER_CONF_OPTS += --yasm='' +endif + define MPLAYER_CONFIGURE_CMDS (cd $(@D); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ @@ -273,7 +280,6 @@ define MPLAYER_CONFIGURE_CMDS --charset=UTF-8 \ --extra-cflags="$(MPLAYER_CFLAGS)" \ --extra-ldflags="$(MPLAYER_LDFLAGS)" \ - --yasm='' \ --enable-fbdev \ $(MPLAYER_CONF_OPTS) \ --enable-cross-compile \