]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(uptime_LDADD): Add $(POW_LIB), for uptime's use of strtod.
authorJim Meyering <jim@meyering.net>
Mon, 27 Mar 2006 07:34:48 +0000 (07:34 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 27 Mar 2006 07:34:48 +0000 (07:34 +0000)
Tiny patch from Nickolai Zeldovich.

src/Makefile.am

index e31da576d6fd47b3058551c63533d4bc119298b3..0fcb0832c8d586b590fc246a0f8b1d2a0c70ad53 100644 (file)
@@ -98,7 +98,8 @@ nanosec_libs = $(LDADD) $(POW_LIB) $(LIB_NANOSLEEP)
 sleep_LDADD = $(nanosec_libs)
 tail_LDADD = $(nanosec_libs)
 
-uptime_LDADD = $(LDADD) $(GETLOADAVG_LIBS)
+# If necessary, add -lm to resolve use of pow in lib/strtod.c.
+uptime_LDADD = $(LDADD) $(POW_LIB) $(GETLOADAVG_LIBS)
 
 su_LDADD = $(LDADD) $(LIB_CRYPT)