[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 cf587ed..a3e215e 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 9fbc214..963a93e 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