[PATCH] trace-cmd: Add -lrt to building trace-record.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>


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@xxxxxxxxxxx>
---
 tracecmd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.20.1




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux