[committed] Link tst-clock_gettime with $(librt)

Joseph Myers josmyers@redhat.com
Thu Oct 31 17:44:42 GMT 2024


This is needed to avoid link failures for the timer_* functions on
Hurd.

Tested with build-many-glibcs.py for i686-gnu.

---

Committed.

diff --git a/time/Makefile b/time/Makefile
index de22692683..4bfb208110 100644
--- a/time/Makefile
+++ b/time/Makefile
@@ -127,6 +127,8 @@ $(objpfx)tst-strftime2.out: $(gen-locales)
 $(objpfx)tst-strftime3.out: $(gen-locales)
 endif
 
+$(objpfx)tst-clock_gettime: $(librt)
+$(objpfx)tst-clock_gettime-time64: $(librt)
 $(objpfx)tst-clock_nanosleep: $(librt)
 $(objpfx)tst-clock_nanosleep-time64: $(librt)
 

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list