[PATCH] Only the posixaio engine needs to link against -lrt
authorJens Axboe <jens.axboe@oracle.com>
Fri, 20 Oct 2006 07:20:11 +0000 (09:20 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 20 Oct 2006 07:20:11 +0000 (09:20 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Makefile
engines/Makefile

index cf587ed3704f7660b41b001b31c3c19f00f6a86e..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 -lm -lrt -ldl
+       $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl
 
 clean:
        -rm -f *.o .depend cscope.out $(PROGS) engines/*.o
index 9fbc21456194362326b870b57dd6032465e01fec..963a93ee9bad97c1dfa8ad0fdc41e1d0ee0c3619 100644 (file)
@@ -17,6 +17,9 @@ clean:
 fio-engine-libaio.o: fio-engine-libaio.c
        $(CC) $(ALL_CFLAGS) -laio -o $*.o $<
 
+fio-engine-posixaio.o: fio-engine-posixaio.c
+       $(CC) $(ALL_CFLAGS) -lrt -o $*.o $<
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif