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>
Wed, 5 Oct 2016 08:44:58 +0000 (10:44 +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.

(cherry picked from commit 4d7ed3e73541983459a7913c2034eba69ebc113d)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavformat/Makefile

index 2553b8d..9b6a23b 100644 (file)
@@ -385,4 +385,4 @@ TOOLS     = aviocat                                                     \
             pktdumper                                                   \
             probetest                                                   \
 
-$(SUBDIR)output-example$(EXESUF): ELIBS = $(patsubst %,$(LD_LIB),swscale)
+$(SUBDIR)output-example$(EXESUF): ELIBS = $(patsubst %,$(LD_LIB),swscale avutil)