[sheepdog] [PATCH stable-0.7 3/3] sheepfs: add -lpthread to the linker option

Hitoshi Mitake mitake.hitoshi at gmail.com
Tue Dec 10 15:29:06 CET 2013


Because libsheepdog wraps pthread reader writer lock, the flag is
required for building sheepfs too.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheepfs/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sheepfs/Makefile.am b/sheepfs/Makefile.am
index c3d539d..30dedce 100644
--- a/sheepfs/Makefile.am
+++ b/sheepfs/Makefile.am
@@ -26,7 +26,7 @@ sbin_PROGRAMS		= sheepfs
 sheepfs_SOURCES		= core.c cluster.c vdi.c shadow_file.c volume.c node.c \
 			  config.c
 
-sheepfs_LDADD	  	= ../lib/libsheepdog.a $(fuse_LIBS) $(LIBS)
+sheepfs_LDADD	  	= ../lib/libsheepdog.a $(fuse_LIBS) $(LIBS) -lpthread
 sheepfs_DEPENDENCIES	= ../lib/libsheepdog.a
 
 noinst_HEADERS		= sheepfs.h
-- 
1.8.1.2




More information about the sheepdog mailing list