[LTP] [COMMITTED] [PATCH] pty03: Add -lrt into LDFLAGS

Cyril Hrubis chrubis@suse.cz
Tue Jan 28 16:46:59 CET 2020


Older distributions needs -lrt for clock_* functions.

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

diff --git a/testcases/kernel/pty/Makefile b/testcases/kernel/pty/Makefile
index 88101a6b8..8fed1b510 100644
--- a/testcases/kernel/pty/Makefile
+++ b/testcases/kernel/pty/Makefile
@@ -27,5 +27,6 @@ include $(top_srcdir)/include/mk/testcases.mk
 CPPFLAGS		+= -D_GNU_SOURCE
 
 pty03: CFLAGS += -pthread
+pty03: LDFLAGS += -lrt
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
-- 
2.23.0



More information about the ltp mailing list