Skip to content

Commit

Permalink
build: export library dependencies in ${name}_FFLIBS
Browse files Browse the repository at this point in the history
Removes an ugly $(if) to avoid conflicts with $(FFLIBS-) in the
top-level MAkefile.
  • Loading branch information
Janne Grunau committed May 19, 2014
1 parent 132a571 commit afe1762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.mak
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all: all-yes
include $(SRC_PATH)/arch.mak

OBJS += $(OBJS-yes)
FFLIBS := $(FFLIBS-$(if $(NAME),$(NAME),no)) $(FFLIBS-yes) $(FFLIBS)
FFLIBS := $($(NAME)_FFLIBS) $(FFLIBS-yes) $(FFLIBS)
TESTPROGS += $(TESTPROGS-yes)

LDLIBS = $(FFLIBS:%=%$(BUILDSUF))
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -4604,7 +4604,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"
Expand Down

0 comments on commit afe1762

Please sign in to comment.