[COMMITTED] syscalls/clock_settime: Fix linking on older distros
diff mbox series

Message ID 20190130151623.25334-1-chrubis@suse.cz
State Accepted
Delegated to: Petr Vorel
Headers show
Series
  • [COMMITTED] syscalls/clock_settime: Fix linking on older distros
Related show

Commit Message

Cyril Hrubis Jan. 30, 2019, 3:16 p.m. UTC
Older distributions require -lrt for clock_* syscalls.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/clock_settime/Makefile | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox series

diff --git a/testcases/kernel/syscalls/clock_settime/Makefile b/testcases/kernel/syscalls/clock_settime/Makefile
index e6674a6b2..d1cf993dc 100644
--- a/testcases/kernel/syscalls/clock_settime/Makefile
+++ b/testcases/kernel/syscalls/clock_settime/Makefile
@@ -5,4 +5,6 @@  top_srcdir		?= ../../../..
 
 include $(top_srcdir)/include/mk/testcases.mk
 
+LDLIBS+=-lrt
+
 include $(top_srcdir)/include/mk/generic_leaf_target.mk