[PATCH] Only the posixaio engine needs to link against -lrt
[fio.git] / Makefile
index 9dc4729f75e6626b5b0361a988ba4ef25cf78011..a3e215e291d226ed9c36ac0518d1816927d6c109 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ all: depend $(PROGS) $(SCRIPTS)
        $(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 -laio -lm -lrt -ldl
+       $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl
 
 clean:
        -rm -f *.o .depend cscope.out $(PROGS) engines/*.o