]> Savannah Git Hosting - gnulib.git/commitdiff
boot-time,readutmp: remove -lrt usage
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Aug 2023 23:45:30 +0000 (16:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Aug 2023 23:46:21 +0000 (16:46 -0700)
This code uses clock-relevant functions only on platforms
that do not need -lrt.
* m4/readutmp.m4 (gl_READUTMP): Do not require gl_CLOCK_TIME
or add CLOCK_TIME_LIB to READUTMP_LIB.
* modules/boot-time (Link): No need to link with CLOCK_TIME_LIB.

ChangeLog
m4/readutmp.m4
modules/boot-time

index 407e1733caaf73723018e419d9e640651cb82d02..9e5c65f5649ce22e791961ab114c119fb49461a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2023-08-12  Paul Eggert  <eggert@cs.ucla.edu>
 
+       boot-time,readutmp: remove -lrt usage
+       This code uses clock-relevant functions only on platforms
+       that do not need -lrt.
+       * m4/readutmp.m4 (gl_READUTMP): Do not require gl_CLOCK_TIME
+       or add CLOCK_TIME_LIB to READUTMP_LIB.
+       * modules/boot-time (Link): No need to link with CLOCK_TIME_LIB.
+
        boot-time,readutmp: do not depend on fopen-gnu
        These modules should work well enough even if fopen is not fixed
        to conform to fopen-gnu standards.  The only gotcha I can see is
index c1803740444d9ef166358d2c5182f631732e7fc7..fff8d4eb7bf92d6d1a2dc40266d5579b847fb012 100644 (file)
@@ -1,4 +1,4 @@
-# readutmp.m4 serial 27
+# readutmp.m4 serial 28
 dnl Copyright (C) 2002-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -40,8 +40,6 @@ AC_DEFUN([gl_READUTMP],
       fi
     fi
   fi
-  AC_REQUIRE([gl_CLOCK_TIME])
-  READUTMP_LIB="$READUTMP_LIB $CLOCK_TIME_LIB"
   AC_SUBST([READUTMP_LIB])
 
   gl_PREREQ_READUTMP_H
index d8ab075024c6f0e38383618a94275a643df616cf..24a798160a80e02e131007fbdf5063652d286526 100644 (file)
@@ -27,7 +27,6 @@ Include:
 "boot-time.h"
 
 Link:
-$(CLOCK_TIME_LIB)
 
 License:
 GPL