aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2019-03-21 12:29:26 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-03-22 15:14:11 -0400
commit870549e98a79136a5293785c52c8d23903a9a906 (patch)
tree7cef871f52907387c1111b866c8c327b1b12b397
parent29a20594a76e6fd947f01ff0efc13a6802693776 (diff)
downloadtrace-cmd-870549e98a79136a5293785c52c8d23903a9a906.tar.gz
trace-cmd: Add -lrt to building trace-record.c
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>
-rw-r--r--tracecmd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracecmd/Makefile b/tracecmd/Makefile
index 3a11024f..93b373d5 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)