Fedora linking changes picked this up:
/usr/bin/ld: btreplay.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
See also https://bugzilla.redhat.com/show_bug.cgi?id=564775
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
override CFLAGS += $(INCS) $(XCFLAGS) $(OCFLAGS)
PROGS = btrecord btreplay
-LIBS = -laio -lrt
+LIBS = -laio -lrt -lpthread
all: depend $(PROGS)