]> sourceware.org Git - lvm2.git/commitdiff
Fix linking order for liblvm2cmd
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 15 Oct 2010 09:41:21 +0000 (09:41 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 15 Oct 2010 09:41:21 +0000 (09:41 +0000)
Reorder linked libraries so we better support --as-needed linker flag used
by some distributions (i.e. Gentoo).

Patch suggested by Diego Elio Pettenò <flameeyes <at> gmail.com>

tools/Makefile.in

index 8f6d67d9a7c1e3152c10989e2a4f3d33656f0366..70a1b61eedbbc646b610cb676b1f035224017fbe 100644 (file)
@@ -149,8 +149,9 @@ liblvm2cmd-static.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.
 
 liblvm2cmd.$(LIB_SUFFIX): liblvm2cmd.a $(LDDEPS)
        $(CC) -shared -Wl,-soname,$@.$(LIB_VERSION) \
-       $(CFLAGS) $(CLDFLAGS) -o $@ $(LVMLIBS) $(LIBS) \
-               @CLDWHOLEARCHIVE@ liblvm2cmd.a @CLDNOWHOLEARCHIVE@
+               $(CFLAGS) $(CLDFLAGS) -o $@ \
+               @CLDWHOLEARCHIVE@ liblvm2cmd.a @CLDNOWHOLEARCHIVE@ \
+               $(LVMLIBS) $(LIBS)
 
 liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION): liblvm2cmd.$(LIB_SUFFIX)
        $(LN_S) -f $< $@
This page took 0.035844 seconds and 5 git commands to generate.