1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Do not create some dm and lvm static librarie when they are not requested

by configure option
Add dependency for static dmeventd library
This commit is contained in:
Zdenek Kabelac 2009-04-08 14:04:35 +00:00
parent 772cac09e3
commit beeae21dbb
4 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.46 -
================================
Avoid creating some static libraries without static_link
Enable use of cached metadata for pvs and pvdisplay commands.
Add missing 'device-mapper' internal subdir build dependency.
Fix memory leak in mirror allocation code.

View File

@ -17,7 +17,9 @@ VPATH = @srcdir@
SOURCES = libdevmapper-event.c
ifeq ("@STATIC_LINK@", "yes")
LIB_STATIC = libdevmapper-event.a
endif
LIB_VERSION = $(LIB_VERSION_DM)
ifeq ("@LIB_SUFFIX@","dylib")
@ -37,7 +39,7 @@ endif
include $(top_srcdir)/make.tmpl
all: dmeventd
device-mapper: dmeventd
device-mapper: dmeventd $(LIB_STATIC)
LDFLAGS += -ldl -ldevmapper -lpthread
CLDFLAGS += -ldl -ldevmapper -lpthread

View File

@ -34,7 +34,9 @@ SOURCES =\
INCLUDES = -I$(interface) -I.
ifeq ("@STATIC_LINK@", "yes")
LIB_STATIC = $(interface)/libdevmapper.a
endif
ifeq ("@LIB_SUFFIX@","dylib")
LIB_SHARED = $(interface)/libdevmapper.dylib

View File

@ -23,7 +23,9 @@ LIB_NAME = liblvm
LIB_VERSION = $(LIB_VERSION_LVM)
VERSIONED_SHLIB = $(LIB_NAME).$(LIB_SUFFIX).$(LIB_VERSION_LVM)
ifeq ("@STATIC_LINK@", "yes")
LIB_STATIC = $(LIB_NAME).a
endif
LIB_SHARED = $(LIB_NAME).so
CLEAN_TARGETS += liblvm.cflow