iowatcher: link with -lrt
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 23 Aug 2016 14:41:21 +0000 (16:41 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 23 Aug 2016 14:45:45 +0000 (08:45 -0600)
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>
iowatcher/Makefile

index 3551ea0a895fba52aef952158097f605b45d6ec5..e013556f3ae1dc3d42baf4d461174f3a2b2ba75a 100644 (file)
@@ -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