[FFmpeg-devel] [PATCH]Fix compilation with --disable-everything

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jan 10 00:55:39 CET 2013


Hi!

Attached patch fixes the following linking problem 
with "./configure --disable-everything && make ffmpeg" for me:

LD      ffmpeg_g
libavcodec/libavcodec.a(dsputil_mmx.o): In function `gmc':
libavcodec/x86/dsputil_mmx.c:1707: undefined reference to 
`ff_emulated_edge_mc_8'
collect2: error: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1


Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c
index f820d1f..738bbd1 100644
--- a/libavcodec/x86/dsputil_mmx.c
+++ b/libavcodec/x86/dsputil_mmx.c
@@ -1785,6 +1785,7 @@ static av_always_inline void gmc(uint8_t *dst, uint8_t *src,
     }
 }
 
+#if CONFIG_VIDEODSP
 #if HAVE_YASM
 #if ARCH_X86_32
 static void gmc_mmx(uint8_t *dst, uint8_t *src,
@@ -1814,6 +1815,7 @@ static void gmc_mmx(uint8_t *dst, uint8_t *src,
         width, height, &ff_emulated_edge_mc_8);
 }
 #endif
+#endif
 
 #endif /* HAVE_INLINE_ASM */
 
@@ -2518,7 +2520,7 @@ static void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx, int mm_flags)
     c->scalarproduct_float          = ff_scalarproduct_float_sse;
     c->butterflies_float_interleave = ff_butterflies_float_interleave_sse;
 
-#if HAVE_INLINE_ASM
+#if HAVE_INLINE_ASM && CONFIG_VIDEODSP
     c->gmc = gmc_sse;
 #endif
 #endif /* HAVE_YASM */


More information about the ffmpeg-devel mailing list