diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 9e71a81fecb6392f7b7ed2bae7611240c2d179a0..0aed9f8cc416f35509cc14ad7b50c1e55e3f57c7 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -582,11 +582,12 @@ MMX-OBJS-$(CONFIG_VP6_DECODER)         += x86/vp3dsp_mmx.o              \
 MMX-OBJS-$(HAVE_YASM)                  += x86/dsputil_yasm.o            \
                                           $(YASM-OBJS-yes)
 
+MMX-OBJS-$(CONFIG_FFT)                 += x86/fft.o
+
 OBJS-$(HAVE_MMX)                       += x86/cpuid.o                   \
                                           x86/dnxhd_mmx.o               \
                                           x86/dsputil_mmx.o             \
                                           x86/fdct_mmx.o                \
-                                          x86/fft.o                     \
                                           x86/idct_mmx_xvid.o           \
                                           x86/idct_sse2_xvid.o          \
                                           x86/motion_est_mmx.o          \