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:
parent
772cac09e3
commit
beeae21dbb
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user