From efa95968317411179b0016af54745906029c2295 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Tue, 13 May 2014 22:15:52 +0200
Subject: [PATCH] common.mak: fix (not)building disabled libs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 common.mak | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/common.mak b/common.mak
index eaa6b47117..357d49672d 100644
--- a/common.mak
+++ b/common.mak
@@ -93,7 +93,10 @@ include $(SRC_PATH)/arch.mak
 
 OBJS      += $(OBJS-yes)
 SLIBOBJS  += $(SLIBOBJS-yes)
-FFLIBS    := $(FFLIBS-$(NAME)) $(FFLIBS-yes) $(FFLIBS)
+FFLIBS    := $(FFLIBS-yes) $(FFLIBS)
+ifdef NAME
+FFLIBS    := $(FFLIBS-$(NAME)) $(FFLIBS)
+endif
 TESTPROGS += $(TESTPROGS-yes)
 
 LDLIBS       = $(FFLIBS:%=%$(BUILDSUF))