add libpthread to btreplay/Makefile LIBS
authorEric Sandeen <sandeen@redhat.com>
Mon, 22 Feb 2010 18:56:52 +0000 (19:56 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 22 Feb 2010 18:56:52 +0000 (19:56 +0100)
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>
btreplay/Makefile

index d027afb3c768548565e5bdac8ab57af048868660..2998182401e75978c9c434e20ea65205812e4f52 100644 (file)
@@ -13,7 +13,7 @@ XCFLAGS       = -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 override CFLAGS += $(INCS) $(XCFLAGS) $(OCFLAGS)
 
 PROGS  = btrecord btreplay
-LIBS   = -laio -lrt
+LIBS   = -laio -lrt -lpthread
 
 all: depend $(PROGS)