diff --git a/common.mak b/common.mak index 18b5463d5b..a493792657 100644 --- a/common.mak +++ b/common.mak @@ -93,7 +93,7 @@ include $(SRC_PATH)/arch.mak OBJS += $(OBJS-yes) SLIBOBJS += $(SLIBOBJS-yes) -FFLIBS := $(FFLIBS-$(if $(NAME),$(NAME),no)) $(FFLIBS-yes) $(FFLIBS) +FFLIBS := $($(NAME)_FFLIBS) $(FFLIBS-yes) $(FFLIBS) TESTPROGS += $(TESTPROGS-yes) LDLIBS = $(FFLIBS:%=%$(BUILDSUF)) diff --git a/configure b/configure index 1e3295e477..2a6a96b1f7 100755 --- a/configure +++ b/configure @@ -5396,7 +5396,7 @@ get_version(){ map 'get_version $v' $LIBRARY_LIST -map 'eval echo "FFLIBS-${v}=\$${v}_deps" >> config.mak' $LIBRARY_LIST +map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> config.mak' $LIBRARY_LIST print_program_libs(){ eval "program_libs=\$${1}_libs"