[sheepdog] [PATCH] sheepfs: add -lpthread to the linker option
Hitoshi Mitake
mitake.hitoshi at gmail.com
Wed Sep 11 18:38:38 CEST 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>
---
sheepfs/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sheepfs/Makefile.am b/sheepfs/Makefile.am
index 10b8c3b..1e571ae 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