summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-23 16:41:21 +0200
committerJens Axboe <axboe@fb.com>2016-08-23 08:45:45 -0600
commitd1ab783430f5a832e973ed9a293da146c04c6702 (patch)
tree1ed81dd33db97efd1b286dd6a40b28c5b827ae09
parent86596c7579c6e374e6e24c2b14398b0808a93f18 (diff)
downloadblktrace-d1ab783430f5a832e973ed9a293da146c04c6702.tar.gz
blktrace-d1ab783430f5a832e973ed9a293da146c04c6702.tar.bz2
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 <thomas.petazzoni@free-electrons.com> Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--iowatcher/Makefile2
1 files changed, 1 insertions, 1 deletions
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