Skip to contentSkip to conversation

master - libdm: Link to libpthread unconditionally.

PATCH Petr Rockai 1 participant 1 message Oct 9, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=529a13ec8907d5693b64ca7063491db059533820
Commit:        529a13ec8907d5693b64ca7063491db059533820
Parent:        7bed6d1263c5a65dbdf8e6d6ead021009aa9a59a
Author:        Petr Rockai <[email protected]>
AuthorDate:    Thu Oct 10 00:27:53 2013 +0200
Committer:     Petr Rockai <[email protected]>
CommitterDate: Thu Oct 10 00:34:35 2013 +0200

libdm: Link to libpthread unconditionally.

---
 configure.in      |    6 ++----
 libdm/Makefile.in |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
configure.in +2 -4
index 611ab37..3bd2439 100644
@@ -1181,10 +1181,8 @@ Features cannot be 'shared' when building statically
 fi
 
 ################################################################################
-if [[ "$DMEVENTD" = yes -o "$CLVMD" != none ]] ; then
-	AC_CHECK_LIB([pthread], [pthread_mutex_lock],
-		[PTHREAD_LIBS="-lpthread"], hard_bailout)
-fi
+AC_CHECK_LIB([pthread], [pthread_mutex_lock],
+	[PTHREAD_LIBS="-lpthread"], hard_bailout)
 
 ################################################################################
 dnl -- Disable selinux
libdm/Makefile.in +1 -1
index bddb0a0..2aa70d4 100644
@@ -57,7 +57,7 @@ include $(top_builddir)/make.tmpl
 DEFS += -DDM_DEVICE_UID=@DM_DEVICE_UID@ -DDM_DEVICE_GID=@DM_DEVICE_GID@ \
 	-DDM_DEVICE_MODE=@DM_DEVICE_MODE@
 
-LIBS += $(SELINUX_LIBS) $(UDEV_LIBS)
+LIBS += $(SELINUX_LIBS) $(UDEV_LIBS) $(PTHREAD_LIBS)
 
 device-mapper: all