From 57b98634c41a6e899f3bad9fd3a4251930a01ffc Mon Sep 17 00:00:00 2001
From: Aurelien Jacobs <aurel@gnuage.org>
Date: Mon, 25 Feb 2008 21:43:19 +0000
Subject: [PATCH] compile various fdct only when encoders are enabled

Originally committed as revision 12219 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index e7d7e239117..3a7d7914dac 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -13,11 +13,8 @@ OBJS = allcodecs.o \
        dsputil.o \
        error_resilience.o \
        eval.o \
-       faandct.o \
        imgconvert.o \
        jrevdct.o \
-       jfdctfst.o \
-       jfdctint.o\
        mpeg12.o \
        mpeg12data.o \
        mpegvideo.o \
@@ -32,6 +29,8 @@ OBJS = allcodecs.o \
 
 HEADERS = avcodec.h opt.h
 
+OBJS-$(CONFIG_ENCODERS)                += faandct.o jfdctfst.o jfdctint.o
+
 OBJS-$(CONFIG_AASC_DECODER)            += aasc.o
 OBJS-$(CONFIG_AC3_DECODER)             += ac3dec.o ac3tab.o ac3.o mdct.o fft.o
 OBJS-$(CONFIG_AC3_ENCODER)             += ac3enc.o ac3tab.o ac3.o
-- 
GitLab