Hi,

This patch fixes some Makefile variables according to these Gnulib NEWS
entries:

2023-01-07  fdatasync       Link with $(FDATASYNC_LIB) instead of
                            $(LIB_FDATASYNC).
[...]
2023-01-07  clock_time      Link with $(CLOCK_TIME_LIB) instead of
                            $(LIB_CLOCK_GETTIME).

IIRC these libraries are only needed on older Glibc, Solaris, Android,
and probably didn't break builds on modern platforms.

Collin

>From e770bd56f5fe22bc00f22c4dfaf6817cecfe4dd4 Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Tue, 13 Aug 2024 17:42:32 -0700
Subject: [PATCH] maint: Update library names used by Gnulib.

* Makefile.am (gzip_LDADD): Update library names according to Gnulib
NEWS 2023-01-07.
---
 Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 899bfdd..98bf483 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -62,8 +62,8 @@ gzip_SOURCES = \
   bits.c deflate.c gzip.c inflate.c \
   trees.c unlzh.c unlzw.c unpack.c unzip.c util.c zip.c
 gzip_LDADD = libver.a lib/libgzip.a
-gzip_LDADD += $(LIB_CLOCK_GETTIME) $(LIB_FDATASYNC)
-# gnulib-tool also recommends $(LIB_MBRTOWC) and $(LIBINTL), but
+gzip_LDADD += $(CLOCK_TIME_LIB) $(FDATASYNC_LIB)
+# gnulib-tool also recommends $(MBRTOWC_LIB) and $(LIBINTL), but
 # modules needing those libraries are avoided so the libraries can be omitted.
 if IBM_Z_DFLTCC
 gzip_SOURCES += dfltcc.c
-- 
2.46.0

Reply via email to