diff mbox series

trace-cmd: Add -lrt to building trace-record.c

Message ID 20190321194635.46c45b93@gandalf.local.home (mailing list archive)
State Accepted
Commit 870549e98a79136a5293785c52c8d23903a9a906
Headers show
Series trace-cmd: Add -lrt to building trace-record.c | expand

Commit Message

Steven Rostedt March 21, 2019, 11:46 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>


clock_gettime() requires -lrt for glibc < 2.17. Add it so older systems can
still build.

Fixes: 42e33cf0e53b ("trace-cmd: improve the accuracy of date to ts mapping")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 tracecmd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tracecmd/Makefile b/tracecmd/Makefile
index 3a11024f817b..93b373d58155 100644
--- a/tracecmd/Makefile
+++ b/tracecmd/Makefile
@@ -39,7 +39,7 @@  all_objs := $(sort $(ALL_OBJS))
 all_deps := $(all_objs:$(bdir)/%.o=$(bdir)/.%.d)
 
 CONFIG_INCLUDES =
-CONFIG_LIBS	=
+CONFIG_LIBS	= -lrt
 CONFIG_FLAGS	=
 
 all: $(TARGETS)