mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add %.so: %.a make template rule.
This commit is contained in:
parent
c1c065a3a5
commit
f0c9fe0105
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.02 -
|
Version 2.02.02 -
|
||||||
====================================
|
====================================
|
||||||
|
Add %.so: %.a make template rule.
|
||||||
Switchover library building to use LIB_SUFFIX.
|
Switchover library building to use LIB_SUFFIX.
|
||||||
Only do lockfs filesystem sync when suspending snapshots.
|
Only do lockfs filesystem sync when suspending snapshots.
|
||||||
Always print warning if activation is disabled.
|
Always print warning if activation is disabled.
|
||||||
|
@ -27,8 +27,6 @@ LIBS = @LIBS@
|
|||||||
CFLAGS += @DEFS@
|
CFLAGS += @DEFS@
|
||||||
CFLAGS += @CFLAGS@
|
CFLAGS += @CFLAGS@
|
||||||
CLDFLAGS += @CLDFLAGS@
|
CLDFLAGS += @CLDFLAGS@
|
||||||
CLDWHOLEARCHIVE += @CLDWHOLEARCHIVE@
|
|
||||||
CLDNOWHOLEARCHIVE += @CLDNOWHOLEARCHIVE@
|
|
||||||
LDDEPS += @LDDEPS@
|
LDDEPS += @LDDEPS@
|
||||||
LDFLAGS += @LDFLAGS@
|
LDFLAGS += @LDFLAGS@
|
||||||
LIB_SUFFIX = @LIB_SUFFIX@
|
LIB_SUFFIX = @LIB_SUFFIX@
|
||||||
@ -163,6 +161,10 @@ $(LIB_SHARED): $(OBJECTS) $(LDDEPS)
|
|||||||
$(CLDFLAGS) $(OBJECTS) $(LIBS) -o $@
|
$(CLDFLAGS) $(OBJECTS) $(LIBS) -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
%.so: %.a
|
||||||
|
$(CC) -shared -Wl,-soname,$(notdir $@).$(LIB_VERSION) \
|
||||||
|
$(CLDFLAGS) $(LIBS) -o $@ @CLDWHOLEARCHIVE@ $< @CLDNOWHOLEARCHIVE@
|
||||||
|
|
||||||
$(LIB_STATIC): $(OBJECTS)
|
$(LIB_STATIC): $(OBJECTS)
|
||||||
$(RM) $@
|
$(RM) $@
|
||||||
$(AR) rs $@ $(OBJECTS)
|
$(AR) rs $@ $(OBJECTS)
|
||||||
|
@ -111,8 +111,6 @@ liblvm2cmd.a: $(top_srcdir)/lib/liblvm.a $(OBJECTS)
|
|||||||
$(AR) rs $@ $(OBJECTS)
|
$(AR) rs $@ $(OBJECTS)
|
||||||
|
|
||||||
liblvm2cmd.so: liblvm2cmd.a $(LDDEPS)
|
liblvm2cmd.so: liblvm2cmd.a $(LDDEPS)
|
||||||
$(CC) -o liblvm2cmd.so $(SOFLAG) $(CLDFLAGS) \
|
|
||||||
$(CLDWHOLEARCHIVE) liblvm2cmd.a $(CLDNOWHOLEARCHIVE)
|
|
||||||
|
|
||||||
.commands: commands.h cmdnames.h Makefile
|
.commands: commands.h cmdnames.h Makefile
|
||||||
$(CC) -E -P cmdnames.h 2> /dev/null | \
|
$(CC) -E -P cmdnames.h 2> /dev/null | \
|
||||||
|
Loading…
Reference in New Issue
Block a user