> 2. make check says "clock_gettime undefined": I need to specify > LIBS=-lrt with configure. (regression to wget-1.15)
I set up a Debian lenny with glibc 2.11 and could reproduce the problem. This patch fixes it for me (using same method as in src/Makefile.am). Please review. Tim
From 5cf5e235ecf44a43e216a8225906eafba3273b16 Mon Sep 17 00:00:00 2001 From: oms <oms@debian.(none)> Date: Tue, 4 Nov 2014 03:30:31 -0600 Subject: [PATCH] * added $(LIB_CLOCK_GETTIME) to unit test linkage On systems with separate librt we need this to successfully link the unit test program. --- tests/ChangeLog | 4 ++++ tests/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index bd00058..bec56d3 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2014-11-03 Tim Ruehsen <[email protected]> + + * added $(LIB_CLOCK_GETTIME) to unit test linkage + 2014-11-03 Pär Karlsson <[email protected]> * WgetFeature.pm: Fixed finding of WgetFeature.cfg when using separate build dirs. diff --git a/tests/Makefile.am b/tests/Makefile.am index dad3d1c..ae96f5b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -135,7 +135,7 @@ EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \ check_PROGRAMS = unit-tests unit_tests_SOURCES -LDADD = ../src/libunittest.a ../lib/libgnu.a $(LIBS) +LDADD = ../src/libunittest.a ../lib/libgnu.a $(LIBS) $(LIB_CLOCK_GETTIME) CLEANFILES = *~ *.bak core core.[0-9]* -- 1.7.2.5
signature.asc
Description: This is a digitally signed message part.
