about summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-10-31 17:43:52 +0000
committerJoseph Myers <josmyers@redhat.com>2024-10-31 17:43:52 +0000
commit9c0903fb7388f645d23b26160ed3669a116189fe (patch)
treef40da2156c7a925c5095a3ab1edc2b641f0578f0 /time
parent383e4f53cbd52a0e697a80a3aa7a7ef891ead8b8 (diff)
downloadglibc-9c0903fb7388f645d23b26160ed3669a116189fe.tar.gz
glibc-9c0903fb7388f645d23b26160ed3669a116189fe.tar.xz
glibc-9c0903fb7388f645d23b26160ed3669a116189fe.zip
Link tst-clock_gettime with $(librt)
This is needed to avoid link failures for the timer_* functions on
Hurd.

Tested with build-many-glibcs.py for i686-gnu.
Diffstat (limited to 'time')
-rw-r--r--time/Makefile2
1 files changed, 2 insertions, 0 deletions
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)