[sheepdog] [PATCH] sheepfs: add -lpthread to the linker option
Liu Yuan
namei.unix at gmail.com
Thu Sep 12 04:58:51 CEST 2013
On Thu, Sep 12, 2013 at 01:38:38AM +0900, Hitoshi Mitake wrote:
> 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
What does this patch tries to fix? I can complie without problems for sheepfs on
my box. And you can't?
Thanks
Yuan
More information about the sheepdog
mailing list