summaryrefslogtreecommitdiff
path: root/library.mak
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-08-28 16:06:56 +0100
committerMans Rullgard <mans@mansr.com>2012-08-29 14:16:54 +0100
commit8db73c61a7b24bc4f4d3d415bea2990d17d16354 (patch)
tree4b11648bd02bc803797504d4d055f1eb91cc8b7d /library.mak
parentbbabeb56fac38347b976e7b84639de53306e4bf2 (diff)
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 <mans@mansr.com>
Diffstat (limited to 'library.mak')
-rw-r--r--library.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/library.mak b/library.mak
index 165a78204f..d89050e84a 100644
--- a/library.mak
+++ b/library.mak
@@ -35,7 +35,7 @@ install-libs-$(CONFIG_SHARED): install-lib$(NAME)-shared
define RULES
$(EXAMPLES) $(TESTPROGS) $(TOOLS): %$(EXESUF): %.o
- $$(LD) $(LDFLAGS) $$(LD_O) $$^ -l$(FULLNAME) $(FFEXTRALIBS) $$(ELIBS)
+ $$(LD) $(LDFLAGS) $$(LD_O) $$^ $(FULLNAME:%=$(LD_LIB)) $(FFEXTRALIBS) $$(ELIBS)
$(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR)
$(Q)cd ./$(SUBDIR) && $(LN_S) $(SLIBNAME_WITH_MAJOR) $(SLIBNAME)