Skip to contentSkip to conversation

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

PATCH New Steven Rostedt 1 participant 1 message Mar 21, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace-cmd: Add -lrt to building trace-record.c

From: "Steven Rostedt (VMware)" <[email protected]>

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")
---
 tracecmd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tracecmd/Makefile +1 -1
index 3a11024f817b..93b373d58155 100644
@@ -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)
Signature · 1 line
2.20.1