]> xenbits.xensource.com Git - libvirt.git/commit
build: use LIBADD, not LDFLAGS, for adding libraries
authorEric Blake <eblake@redhat.com>
Fri, 7 May 2010 16:39:52 +0000 (10:39 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 7 May 2010 17:12:09 +0000 (11:12 -0600)
commit48445ccff9de2ae1c01f264f851510ec69646c65
tree21c49b142c4ee7c57229740ee465cfa8c7ab0841
parente6125e4938b75a80e455534cf288d0efd247cbcc
build: use LIBADD, not LDFLAGS, for adding libraries

Per automake, LDFLAGS is used early in the line, and LIBADD
(libraries) or LDADD (programs) is used late.  On platforms like
cygwin, without lazy linking, this order matters.  Therefore, libtool
commands, -L, and similar should be in LDFLAGS, but -l should be in
L*ADD.

* src/Makefile.am (*_LDFLAGS): Move libraries...
(*_LIBADD): ...to their LIBADD counterpart.
src/Makefile.am