Cygwin requires some extra LDFLAGS and LIBADD be passed when linking.
Rather than add these extra flags to all invocations, I've created
special @CYGWIN_EXTRA_*@ symbols to contain them.
This is basically copied from libxml2.
Also ordering of *_LIBADD and *_LDFLAGS seems to be important in
automake. Specifically: if libvirt_la_SOURCES comes after
libvirt_la_LDFLAGS then automake wasn't able to determine the list of
sources (I've no idea why but possibly because libvirt_la_SOURCES is
defined in terms of other variables?), so I've reordered these lines.
Rich.
--
Emerging Technologies, Red Hat -
http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903