Add $(ELIBS) to example/test app link command
authorMåns Rullgård <mans@mansr.com>
Wed, 1 Apr 2009 00:53:34 +0000 (00:53 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 1 Apr 2009 00:53:34 +0000 (00:53 +0000)
Originally committed as revision 18298 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/Makefile
subdir.mak

index 00e1ae5..aad67cc 100644 (file)
@@ -247,3 +247,5 @@ EXAMPLES  = output
 TESTPROGS = timefilter
 
 include $(SUBDIR)../subdir.mak
+
+$(SUBDIR)output-example$(EXESUF): ELIBS = -lswscale
index 7343f54..7148ce6 100644 (file)
@@ -22,7 +22,7 @@ THIS_LIB := $(SUBDIR)$($(BUILD_SHARED:yes=S)LIBNAME)
 
 define RULES
 $(SUBDIR)%$(EXESUF): $(SUBDIR)%.o
-       $(CC) $(FFLDFLAGS) -o $$@ $$^ -l$(FULLNAME) $(FFEXTRALIBS)
+       $(CC) $(FFLDFLAGS) -o $$@ $$^ -l$(FULLNAME) $(FFEXTRALIBS) $$(ELIBS)
 
 $(SUBDIR)%-test.o: $(SUBDIR)%.c
        $(CC) $(CFLAGS) -DTEST -c -o $$@ $$^