1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Link liblvm2cmd.so with devmapper-event and devmapper libs.

and remove generic %.so: %.a target.
This commit is contained in:
Zdenek Kabelac 2010-05-11 08:34:38 +00:00
parent 1b281f408d
commit 3806ab6f1f
3 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.65 -
=================================
Link liblvm2cmd.so with devmapper-event and devmapper libs.
Fix truncated total size displayed by pvscan.
Add new --sysinit option for vgchange and lvchange.
Suppress duplicate error messages about read failures and missing devices.

View File

@ -320,11 +320,6 @@ install_lvm2_plugin: $(LIB_SHARED)
$(LN_S) -f $(<F) $(libdir)/$(<F).$(LIB_VERSION)
endif
%.so: %.a
$(CC) -shared -Wl,-soname,$(notdir $@).$(LIB_VERSION) \
$(CFLAGS) $(CLDFLAGS) $(LIBS) -o $@ \
@CLDWHOLEARCHIVE@ $< @CLDNOWHOLEARCHIVE@
$(LIB_STATIC): $(OBJECTS)
$(RM) $@
$(AR) rs $@ $(OBJECTS)

View File

@ -145,6 +145,9 @@ liblvm2cmd-static.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.
$(AR) rs $@ $(OBJECTS) lvmcmdlib.o lvm2cmd-static.o
liblvm2cmd.$(LIB_SUFFIX): liblvm2cmd.a $(LDDEPS)
$(CC) -shared -Wl,-soname,$@.$(LIB_VERSION) \
$(CFLAGS) $(CLDFLAGS) -o $@ $(LVMLIBS) $(LIBS) \
@CLDWHOLEARCHIVE@ liblvm2cmd.a @CLDNOWHOLEARCHIVE@
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION): liblvm2cmd.$(LIB_SUFFIX)
$(LN_S) -f $< $@