[PATCH] Only the posixaio engine needs to link against -lrt
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/Makefile b/Makefile
index cf587ed..a3e215e 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@
$(MAKE) -C engines
fio: fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o filesetup.o eta.o verify.o
- $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -lrt -ldl
+ $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl
clean:
-rm -f *.o .depend cscope.out $(PROGS) engines/*.o