From 8db73c61a7b24bc4f4d3d415bea2990d17d16354 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Tue, 28 Aug 2012 16:06:56 +0100 Subject: build: allow non-standard variations of linker -l/-L flags This enables replacing the -l and -L flags used to specify the just-built libraries when linking the tools and shared libs with non-standard syntaxes. System library flags are already handled by the filtering mechanism in configure. Signed-off-by: Mans Rullgard --- common.mak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common.mak') diff --git a/common.mak b/common.mak index 01adfeca41..d866ef1eef 100644 --- a/common.mak +++ b/common.mak @@ -11,7 +11,8 @@ OBJS += $(OBJS-yes) FFLIBS := $(FFLIBS-yes) $(FFLIBS) TESTPROGS += $(TESTPROGS-yes) -FFEXTRALIBS := $(FFLIBS:%=-l%$(BUILDSUF)) $(EXTRALIBS) +LDLIBS = $(FFLIBS:%=%$(BUILDSUF)) +FFEXTRALIBS := $(LDLIBS:%=$(LD_LIB)) $(EXTRALIBS) EXAMPLES := $(EXAMPLES:%=$(SUBDIR)%-example$(EXESUF)) OBJS := $(sort $(OBJS:%=$(SUBDIR)%)) -- cgit v1.2.3