diff --git a/configure.in b/configure.in index 611ab377f..3bd2439f3 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/libdm/Makefile.in b/libdm/Makefile.in index bddb0a089..2aa70d4c9 100644 --- a/libdm/Makefile.in +++ b/libdm/Makefile.in @@ -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