Fix avfilter compilation with --enable-shared and no libswscaler
authorVitor Sessak <vitor1001@gmail.com>
Wed, 5 Mar 2008 18:26:44 +0000 (18:26 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Wed, 5 Mar 2008 18:26:44 +0000 (18:26 +0000)
Originally committed as revision 12340 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/Makefile

index 38f5a2c..6af64ba 100644 (file)
@@ -12,9 +12,13 @@ OBJS = allfilters.o \
 HEADERS = avfilter.h
 
 EXTRALIBS := -L$(BUILD_ROOT)/libavcodec -lavcodec$(BUILDSUF) \
-             -L$(BUILD_ROOT)/libswscale -lswscale$(BUILDSUF) \
              -L$(BUILD_ROOT)/libavutil  -lavutil$(BUILDSUF) $(EXTRALIBS)
 
+ifeq ($(CONFIG_SWSCALER),yes)
+EXTRALIBS+=-L$(BUILD_ROOT)/libswscale
+EXTRALIBS+=-lswscale$(BUILDSUF)
+endif
+
 ifeq ($(CONFIG_AVFILTER_LAVF),yes)
 EXTRALIBS := -L$(BUILD_ROOT)/libavformat -lavformat$(BUILDSUF) $(EXTRALIBS)
 endif