From: Jens Axboe Date: Fri, 20 Oct 2006 07:20:11 +0000 (+0200) Subject: [PATCH] Only the posixaio engine needs to link against -lrt X-Git-Tag: fio-1.7~11 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=2953f5751ed8603b2f9ed89231a0dff6716ff151;p=fio.git [PATCH] Only the posixaio engine needs to link against -lrt Signed-off-by: Jens Axboe --- diff --git a/Makefile b/Makefile index cf587ed3..a3e215e2 100644 --- 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 diff --git a/engines/Makefile b/engines/Makefile index 9fbc2145..963a93ee 100644 --- a/engines/Makefile +++ b/engines/Makefile @@ -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