build: output-example: Add avutil to ELIBS in link command
authorDiego Biurrun <diego@biurrun.de>
Sat, 27 Apr 2013 12:51:27 +0000 (14:51 +0200)
committerDiego Biurrun <diego@biurrun.de>
Sat, 4 May 2013 19:19:49 +0000 (21:19 +0200)
output-example links against swscale, which depends on avutil.  In standard
configurations, by pure good luck, the libs before swscale pull in all of
swscale's dependencies and linking succeeds.  However, in some configurations
like --disable-asm this is not the case and linking fails.

Hardcode the dependency to avoid a more general Makefile refactoring.

libavformat/Makefile

index 110e683..d459bdf 100644 (file)
@@ -390,4 +390,4 @@ TOOLS     = aviocat                                                     \
             pktdumper                                                   \
             probetest                                                   \
 
-$(SUBDIR)output-example$(EXESUF): ELIBS = $(patsubst %,$(LD_LIB),swscale)
+$(SUBDIR)output-example$(EXESUF): ELIBS = $(patsubst %,$(LD_LIB),swscale avutil)