From: Jim Meyering Date: Thu, 12 Sep 2002 13:16:20 +0000 (+0000) Subject: (nanosec_libs): Define. X-Git-Tag: v4.5.2~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3087631793c20b8e452e9feb34e8984421c2108a;p=thirdparty%2Fcoreutils.git (nanosec_libs): Define. (sleep_LDADD, tail_LDADD): Use it here. --- 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@