
On Mon, Nov 16, 2009 at 11:34:51AM +0000, Daniel P. Berrange wrote:
On Mon, Nov 16, 2009 at 11:23:15AM +0000, Richard W.M. Jones wrote:
[This is just a FYI ...]
Upstream binutils or gcc changed the default way that symbols are exported for cross-compiled (Fedora MinGW) DLLs. Previously all symbols were exported. Now they are only exported if they are explicitly listed in a *.def file.
There are two ways that libvirt could be changed to do the right thing here.
Or create a *.def file. It looks like:
LIBRARY libvirt.dll DESCRIPTION "libvirt foo blah" EXPORTS <<list of symbol names, one per line>>
http://msdn.microsoft.com/en-us/library/d91k01sh%28VS.80%29.aspx http://msdn.microsoft.com/en-us/library/28d6s79h%28VS.80%29.aspx
The LIBRARY and DESCRIPTION lines are optional.
This method sounds appealing to me - we could likely auto-generate this file from the master src/libvirt_public.syms file we already have for Linux/Solaris
yup, Rich how urgent is that ? maybe we should try to fix this for 0.7.3 (I'm also wondering why I didn't see this for libxml2/libxslt) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/