trace-cmd: Add -lrt to building trace-record.c
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")
Signed-off-by Steven Rostedt (VMware) <[email protected]>
--- tracecmd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tracecmd/Makefile +1 -1
@@ -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