summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/Makefile.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-03-04 11:21:05 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-03-04 11:21:05 +0000
commitf30875dbc67a6ec3f2e94533f63173062748222e (patch)
tree78a0b81da736d2dbaac8fb6d2c9bfcea0490c67f /daemons/clvmd/Makefile.in
parent539f4a77287ec4222f4e46cdeca18ab256dfe4b9 (diff)
downloadlvm2-f30875dbc67a6ec3f2e94533f63173062748222e.tar.gz
lvm2-f30875dbc67a6ec3f2e94533f63173062748222e.tar.xz
lvm2-f30875dbc67a6ec3f2e94533f63173062748222e.zip
Pthread linking change
Create new substituted variable PTHREAD_LIBS and link this library only with tools/libs which really needs it - i.e. dmeventd. Check for libpthread only for builds with clvmd or dmeventd. Remove variable LIB_PTHREAD
Diffstat (limited to 'daemons/clvmd/Makefile.in')
-rw-r--r--daemons/clvmd/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/clvmd/Makefile.in b/daemons/clvmd/Makefile.in
index 40d1da46..16ba0b89 100644
--- a/daemons/clvmd/Makefile.in
+++ b/daemons/clvmd/Makefile.in
@@ -75,13 +75,14 @@ endif
TARGETS = \
clvmd
-LVMLIBS = $(LVMINTERNAL_LIBS) -lpthread
+LVMLIBS = $(LVMINTERNAL_LIBS)
ifeq ("@DMEVENTD@", "yes")
LVMLIBS += -ldevmapper-event
endif
LVMLIBS += -ldevmapper
+LIBS += $(PTHREAD_LIBS)
DEFS += -D_REENTRANT
CFLAGS += -fno-strict-aliasing