avformat/output-example: Declare link dependency on libswscale in the Makefile
authorDiego Biurrun <diego@biurrun.de>
Tue, 1 Oct 2013 11:34:02 +0000 (13:34 +0200)
committerDiego Biurrun <diego@biurrun.de>
Thu, 3 Oct 2013 21:23:04 +0000 (23:23 +0200)
common.mak
libavformat/Makefile

index a1d9d1e502330e85c86db3d73321c45bdce7d88c..41ef235db7a61141a410638e08c849f8a0ea06cd 100644 (file)
@@ -25,7 +25,8 @@ TOOLOBJS  := $(TOOLS:%=tools/%.o)
 TOOLS     := $(TOOLS:%=tools/%$(EXESUF))
 HEADERS   += $(HEADERS-yes)
 
 TOOLS     := $(TOOLS:%=tools/%$(EXESUF))
 HEADERS   += $(HEADERS-yes)
 
-DEP_LIBS := $(foreach NAME,$(FFLIBS),lib$(NAME)/$($(CONFIG_SHARED:yes=S)LIBNAME))
+PATH_LIBNAME = $(foreach NAME,$(1),lib$(NAME)/$($(CONFIG_SHARED:yes=S)LIBNAME))
+DEP_LIBS := $(foreach lib,$(FFLIBS),$(call PATH_LIBNAME,$(lib)))
 
 SRC_DIR    := $(SRC_PATH)/lib$(NAME)
 ALLHEADERS := $(subst $(SRC_DIR)/,$(SUBDIR),$(wildcard $(SRC_DIR)/*.h $(SRC_DIR)/$(ARCH)/*.h))
 
 SRC_DIR    := $(SRC_PATH)/lib$(NAME)
 ALLHEADERS := $(subst $(SRC_DIR)/,$(SUBDIR),$(wildcard $(SRC_DIR)/*.h $(SRC_DIR)/$(ARCH)/*.h))
index 231e127228391ea4061a18f991e4aded6894e27e..f12b493a88254ea1eed07faa51ce0922f88d6a6f 100644 (file)
@@ -400,3 +400,4 @@ TOOLS     = aviocat                                                     \
             probetest                                                   \
 
 $(SUBDIR)output-example$(EXESUF): ELIBS = $(patsubst %,$(LD_LIB),swscale avutil)
             probetest                                                   \
 
 $(SUBDIR)output-example$(EXESUF): ELIBS = $(patsubst %,$(LD_LIB),swscale avutil)
+$(SUBDIR)output-example$(EXESUF): $(call PATH_LIBNAME,swscale)