summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-09-12 13:16:20 +0000
committerJim Meyering <jim@meyering.net>2002-09-12 13:16:20 +0000
commit3087631793c20b8e452e9feb34e8984421c2108a (patch)
treec4a598acb5c6fd196baa3ca64c1dac6c46fa97c6 /src
parent96bd9415dc85b2adad94a019b22103d63b94c2e4 (diff)
downloadcoreutils-3087631793c20b8e452e9feb34e8984421c2108a.tar.xz
(nanosec_libs): Define.
(sleep_LDADD, tail_LDADD): Use it here.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 859b3d441..b8d885748 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@