From: Thomas Petazzoni Date: Tue, 23 Aug 2016 14:41:21 +0000 (+0200) Subject: iowatcher: link with -lrt X-Git-Tag: blktrace-1.2.0~5 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d1ab783430f5a832e973ed9a293da146c04c6702;p=blktrace.git iowatcher: link with -lrt Some C libraries (notably uClibc) have the posix_spawn*() functions in librt, so let's link iowatcher with -lrt. Signed-off-by: Thomas Petazzoni Signed-off-by: Jens Axboe --- diff --git a/iowatcher/Makefile b/iowatcher/Makefile index 3551ea0..e013556 100644 --- a/iowatcher/Makefile +++ b/iowatcher/Makefile @@ -19,7 +19,7 @@ all: $(ALL) $(CC) -o $*.o -c $(ALL_CFLAGS) $< iowatcher: blkparse.o plot.o main.o tracers.o mpstat.o fio.o - $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) -lm + $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) -lm -lrt depend: @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend