From 3087631793c20b8e452e9feb34e8984421c2108a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 12 Sep 2002 13:16:20 +0000 Subject: [PATCH] (nanosec_libs): Define. (sleep_LDADD, tail_LDADD): Use it here. --- src/Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 859b3d4411..b8d8857487 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -57,9 +57,12 @@ printf_LDADD = $(LDADD) @POW_LIB@ @LIBICONV@ seq_LDADD = $(LDADD) @SEQ_LIBM@ # If necessary, add -lm to resolve the `pow' reference in lib/strtod.c -# or for the fesetround reference in sleep.c. -sleep_LDADD = $(LDADD) @FESETROUND_LIBM@ @POW_LIB@ \ - @LIB_CLOCK_GETTIME@ @LIB_NANOSLEEP@ +# or for the fesetround reference in programs using nanosec.c. +nanosec_libs = \ + $(LDADD) @FESETROUND_LIBM@ @POW_LIB@ @LIB_CLOCK_GETTIME@ @LIB_NANOSLEEP@ + +sleep_LDADD = $(nanosec_libs) +tail_LDADD = $(nanosec_libs) uptime_LDADD = $(LDADD) @GETLOADAVG_LIBS@ -- 2.47.2