linux-btrace.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add libpthread to btreplay/Makefile LIBS
@ 2010-02-13 18:32 Eric Sandeen
  2010-02-22 18:58 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2010-02-13 18:32 UTC (permalink / raw)
  To: linux-btrace

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?idV4775

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

Index: blktrace-1.0.1/btreplay/Makefile
=================================--- blktrace-1.0.1.orig/btreplay/Makefile
+++ blktrace-1.0.1/btreplay/Makefile
@@ -13,7 +13,7 @@ XCFLAGS	= -D_GNU_SOURCE -D_LARGEFILE_SOU
 override CFLAGS += $(INCS) $(XCFLAGS) $(OCFLAGS)
 
 PROGS	= btrecord btreplay
-LIBS	= -laio -lrt
+LIBS	= -laio -lrt -lpthread
 
 all: depend $(PROGS)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-22 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-13 18:32 [PATCH] add libpthread to btreplay/Makefile LIBS Eric Sandeen
2010-02-22 18:58 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).