summaryrefslogtreecommitdiff
path: root/ffbuild
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-10-11 17:55:25 -0300
committerJames Almer <jamrial@gmail.com>2017-10-11 17:55:25 -0300
commit6dfcbd80ad446ff163b47f2bf432bbf706436ea8 (patch)
tree0ec563538452a051d17f3fbc97bbcb4464863535 /ffbuild
parent58143b15adda6391ec07f3eb19e80ed91d801edd (diff)
parent7cb1d9e2dbbe5bf4652be5d78cdd68e956fa3d63 (diff)
downloadffmpeg-6dfcbd80ad446ff163b47f2bf432bbf706436ea8.tar.gz
Merge commit '7cb1d9e2dbbe5bf4652be5d78cdd68e956fa3d63'
* commit '7cb1d9e2dbbe5bf4652be5d78cdd68e956fa3d63': build: Fine-grained link-time dependency settings Also included are bug fix commits 5ff3b5cafcc685b6936d16602b0f80aa09a95870, d9da7151eef7fc469787e7298196cea291acfd82 and 5e27ef800bfa2be17a6353ddedac6b7400e4624f. Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'ffbuild')
-rw-r--r--ffbuild/common.mak2
-rw-r--r--ffbuild/library.mak2
2 files changed, 2 insertions, 2 deletions
diff --git a/ffbuild/common.mak b/ffbuild/common.mak
index e168fb2cfd..a6b23e029f 100644
--- a/ffbuild/common.mak
+++ b/ffbuild/common.mak
@@ -119,7 +119,7 @@ FFLIBS := $($(NAME)_FFLIBS) $(FFLIBS-yes) $(FFLIBS)
TESTPROGS += $(TESTPROGS-yes)
LDLIBS = $(FFLIBS:%=%$(BUILDSUF))
-FFEXTRALIBS := $(LDLIBS:%=$(LD_LIB)) $(EXTRALIBS)
+FFEXTRALIBS := $(FFLIBS:%=$(LD_LIB)) $(foreach lib,EXTRALIBS-$(NAME) $(FFLIBS:%=EXTRALIBS-%),$($(lib))) $(EXTRALIBS)
OBJS := $(sort $(OBJS:%=$(SUBDIR)%))
SLIBOBJS := $(sort $(SLIBOBJS:%=$(SUBDIR)%))
diff --git a/ffbuild/library.mak b/ffbuild/library.mak
index 4191edcf9c..430da3f72a 100644
--- a/ffbuild/library.mak
+++ b/ffbuild/library.mak
@@ -32,7 +32,7 @@ $(TOOLS): THISLIB = $(FULLNAME:%=$(LD_LIB))
$(TESTPROGS): THISLIB = $(SUBDIR)$(LIBNAME)
$(TESTPROGS) $(TOOLS): %$(EXESUF): %.o
- $$(LD) $(LDFLAGS) $(LDEXEFLAGS) $$(LD_O) $$(filter %.o,$$^) $$(THISLIB) $(FFEXTRALIBS) $$(ELIBS)
+ $$(LD) $(LDFLAGS) $(LDEXEFLAGS) $$(LD_O) $$(filter %.o,$$^) $$(THISLIB) $(FFEXTRALIBS) $$(EXTRALIBS-$$(*F)) $$(ELIBS)
$(SUBDIR)lib$(NAME).version: $(SUBDIR)version.h | $(SUBDIR)
$$(M) $$(SRC_PATH)/ffbuild/libversion.sh $(NAME) $$< > $$@