From 7c79768a580e106df5105b8d6875d77463f34432 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 30 Oct 2009 19:38:00 +0100 Subject: [PATCH] build: link with $(LIB_CLOCK_GETTIME) * Makefile.am (gzip_LDADD): Add $(LIB_CLOCK_GETTIME), now that utimens pulls in gettime. (FILES_TO_CHECK): Remove $(gzip_LDADD), now that it may contain -lrt. --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 3bca0ee..59cc615 100644 --- a/Makefile.am +++ b/Makefile.am @@ -48,6 +48,7 @@ gzip_SOURCES = \ bits.c crypt.c deflate.c gzip.c inflate.c lzw.c \ trees.c unlzh.c unlzw.c unpack.c unzip.c util.c zip.c gzip_LDADD = lib/libgzip.a +gzip_LDADD += $(LIB_CLOCK_GETTIME) gzip.doc: gzip.1 $(AM_V_GEN)groff -man -Tascii $(srcdir)/gzip.1 | col -b | uniq > $@-t \ @@ -82,7 +83,7 @@ gen-ChangeLog: fi # A simple test, just of gzip -- more of a sanity check than anything else. -FILES_TO_CHECK = $(bin_SCRIPTS) $(gzip_LDADD) \ +FILES_TO_CHECK = $(bin_SCRIPTS) \ $(top_srcdir)/ChangeLog $(top_srcdir)/configure $(top_srcdir)/gzip.c check-local: $(FILES_TO_CHECK) $(bin_PROGRAMS) gzip.doc.gz { test '$(srcdir)' != . || ./zdiff --__bindir . -c gzip.doc.gz; } -- 2.47.2