[PATCH] Fix FreeBSD/Solaris linkage
authorJens Axboe <jens.axboe@oracle.com>
Tue, 5 Dec 2006 10:56:56 +0000 (11:56 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 5 Dec 2006 10:56:56 +0000 (11:56 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Makefile.FreeBSD
Makefile.solaris

index ed75473be0a9bdfdbb376e2a9c6942dbf8f9e48d..4f0da736e0dbddedba01a0424e4cea4eef24273a 100644 (file)
@@ -14,7 +14,7 @@ OBJS += engines/fio-engine-null.o
 all: depend $(PROGS) $(SCRIPTS)
 
 fio: $(OBJS)
-       $(CC) $(CFLAGS) -o $@ $(OBJS) -lpthread -lm
+       $(CC) $(CFLAGS) -o $@ $(OBJS) -lpthread -lm -ldl -lrt
 
 clean:
        -rm -f *.o .depend cscope.out $(PROGS)
index 9eb2ebca3aa8bcbd2042861d1e1b8cb1b0aa7e69..1a68984d4f8d202ca2f8a38cfb2cfceafe98d253 100644 (file)
@@ -14,7 +14,7 @@ OBJS += engines/fio-engine-null.o
 all: depend $(PROGS) $(SCRIPTS)
 
 fio: $(OBJS)
-       $(CC) $(CFLAGS) -o $@ $(OBJS) -lc -lpthread -lm -laio -lrt
+       $(CC) $(CFLAGS) -o $@ $(OBJS) -lc -lpthread -lm -laio -lrt -ldl
 
 clean:
        -rm -f *.o .depend cscope.out $(PROGS)