From dcdb349be73f7223962f55e4f2e74583f5b78687 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 9 Jul 2012 16:23:51 +0200 Subject: build-sys: always use default $(LDADD) The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak --- text-utils/Makemodule.am | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'text-utils/Makemodule.am') diff --git a/text-utils/Makemodule.am b/text-utils/Makemodule.am index 691ed1d5e..23185eaa6 100644 --- a/text-utils/Makemodule.am +++ b/text-utils/Makemodule.am @@ -18,15 +18,15 @@ dist_man_MANS += \ text-utils/tailf.1 col_SOURCES = text-utils/col.c -col_LDADD = libcommon.la +col_LDADD = $(LDADD) libcommon.la colcrt_SOURCES = text-utils/colcrt.c colrm_SOURCES = text-utils/colrm.c -colrm_LDADD = libcommon.la +colrm_LDADD = $(LDADD) libcommon.la column_SOURCES = text-utils/column.c -column_LDADD = libcommon.la +column_LDADD = $(LDADD) libcommon.la hexdump_SOURCES = \ text-utils/conv.c \ @@ -35,12 +35,12 @@ hexdump_SOURCES = \ text-utils/hexdump.h \ text-utils/hexsyntax.c \ text-utils/parse.c -hexdump_LDADD = libcommon.la +hexdump_LDADD = $(LDADD) libcommon.la rev_SOURCES = text-utils/rev.c tailf_SOURCES = text-utils/tailf.c -tailf_LDADD = libcommon.la +tailf_LDADD = $(LDADD) libcommon.la if BUILD_LINE usrbin_exec_PROGRAMS += line @@ -58,13 +58,13 @@ ul_SOURCES = text-utils/ul.c pg_SOURCES = text-utils/pg.c if HAVE_TINFO -more_LDADD = -ltinfo -pg_LDADD = -ltinfo @NCURSES_LIBS@ -ul_LDADD = -ltinfo +more_LDADD = $(LDADD) -ltinfo +pg_LDADD = $(LDADD) -ltinfo @NCURSES_LIBS@ +ul_LDADD = $(LDADD) -ltinfo else -more_LDADD = @NCURSES_LIBS@ -pg_LDADD = @NCURSES_LIBS@ -ul_LDADD = @NCURSES_LIBS@ +more_LDADD = $(LDADD) @NCURSES_LIBS@ +pg_LDADD = $(LDADD) @NCURSES_LIBS@ +ul_LDADD = $(LDADD) @NCURSES_LIBS@ endif dist_man_MANS += \ @@ -75,7 +75,7 @@ else if HAVE_TERMCAP bin_PROGRAMS += more more_SOURCES = text-utils/more.c -more_LDADD = -ltermcap +more_LDADD = $(LDADD) -ltermcap dist_man_MANS += text-utils/more.1 endif endif # !HAVE_NCURSES -- cgit v1.2.3-55-g7522