From c35dea1c891af38e12f4c423fb84e06760e80b70 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sat, 17 Sep 2022 21:31:53 +0200
Subject: [PATCH] time C++ tests: Fix link error on CentOS 5.

* modules/time-c++-tests (Makefile.am): Link test-time-c++ against
$(LIB_CLOCK_GETTIME).
---
 ChangeLog              | 6 ++++++
 modules/time-c++-tests | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index a995e6844b..8e7283b2e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-09-17  Bruno Haible  <bruno@clisp.org>
+
+	time C++ tests: Fix link error on CentOS 5.
+	* modules/time-c++-tests (Makefile.am): Link test-time-c++ against
+	$(LIB_CLOCK_GETTIME).
+
 2022-09-14  Bruno Haible  <bruno@clisp.org>
 
 	time: Fix compilation errors with clang/MSVC.
diff --git a/modules/time-c++-tests b/modules/time-c++-tests
index c811d6fd42..f8dd779965 100644
--- a/modules/time-c++-tests
+++ b/modules/time-c++-tests
@@ -16,5 +16,5 @@ if ANSICXX
 TESTS += test-time-c++
 check_PROGRAMS += test-time-c++
 test_time_c___SOURCES = test-time-c++.cc test-time-c++2.cc
-test_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
+test_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_CLOCK_GETTIME)
 endif
-- 
2.39.5